Commits

Anonymous committed 1845ca4

dict => list error

Comments (0)

Files changed (1)

             if not line.startswith("[Text="):
                 print line
                 raise Exception("Parse error. Could not find [Text=")
-            tmp['words'] = {} 
+            tmp['words'] = [] 
             exp = re.compile('\[([a-zA-Z0-9=. ]+)\]')
             matches  = exp.findall(line)
             for s in matches: