Commits

David Campbell committed 5df006b

fixed errors

Comments (0)

Files changed (1)

svmlight/svmlight.py

 from ctypes import *
+from collections import namedtuple
 
 import localdata
 
 # ----------------------------------------------
 
 def unpack_doclist( doclist, doclistdata ):
-    
     try:
-    doc_iterator = iter(doclist)
+        doc_iterator = iter(doclist)
     except TypeError, te:
-    raise Exception("Not iterable")
+        raise Exception("Not iterable")
 
     (max_docs, max_words) = count_doclist( doclist )