Refactoring, using const, removing global variables, passing some new arguments.
[treecutter.git] / treecutter / directory.py
index edbdee1ba4422ec84c59cfff70f1a1cee7360ee7..0c633a784b11f04e158fbfdd723e8cb59168bab5 100644 (file)
@@ -15,7 +15,7 @@ class Directory():
             for filename in filenames:
                 if fnmatch.fnmatch(filename, '*.xml'):
                     file_ = os.path.join(dirname,filename)
-                    doc = bindery.parse(file_, prefixes=PREFIXES)
+                    doc = bindery.parse(file_, prefixes=const.PREFIXES)
                     title = doc.xml_select(u'/db:article/db:info/db:title')
                     menu  = doc.xml_select(u'/db:article/db:info/db:titleabbrev')
                     if title and menu: