diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2014-09-11 10:47:25 -0400 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2014-09-11 10:47:25 -0400 |
| commit | 013d42ca921432ac5513d9c9b2427b3ffe0bb8a0 (patch) | |
| tree | 672c711dab025abe6f5a36eb568d7c7e39deee9d | |
| parent | 56d845440b0e9a74841088a0b97d6e5bb9dce320 (diff) | |
| download | jasper-client-013d42ca921432ac5513d9c9b2427b3ffe0bb8a0.tar.gz jasper-client-013d42ca921432ac5513d9c9b2427b3ffe0bb8a0.zip | |
PEP8 style fixes for brain.py
| -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): |
