Commits

David Chambers  committed 6b23afb

Removed unnecessary assignment statement.

  • Participants
  • Parent commits 2f257ce

Comments (0)

Files changed (1)

         for name in [f for f in os.listdir(dirpath) if not f.startswith('.') and not re.search(RE['control_characters'], f)]:
             path = os.path.join(dirpath, name)
             if os.path.isdir(path):
-                category = Category(path)
-                self.subcategories.append(category)
+                self.subcategories.append(Category(path))
             else:
                 self.add_document(path, use_cache)