diff options
| -rw-r--r-- | client/brain.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/client/brain.py b/client/brain.py index 83b119c..039b1db 100644 --- a/client/brain.py +++ b/client/brain.py @@ -1,7 +1,6 @@ # -*- coding: utf-8-*- import logging import os -import sys import pkgutil import importlib @@ -47,9 +46,9 @@ class Brain(object): modules = [] for name in module_names: mod = importlib.import_module("modules.%s" % name) - if hasattr(mod, 'WORDS'): + if hasattr(mod, 'WORDS'): modules.append(mod) - modules.sort(key=lambda mod: mod.PRIORITY if hasattr(mod,'PRIORITY') else 0, reverse=True) + modules.sort(key=lambda mod: mod.PRIORITY if hasattr(mod, 'PRIORITY') else 0, reverse=True) return modules def query(self, text): |
