summaryrefslogtreecommitdiff
path: root/client/brain.py
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2014-09-11 10:47:25 -0400
committerschneefux <schneefux+commit@schneefux.xyz>2014-09-11 10:47:25 -0400
commit013d42ca921432ac5513d9c9b2427b3ffe0bb8a0 (patch)
tree672c711dab025abe6f5a36eb568d7c7e39deee9d /client/brain.py
parent56d845440b0e9a74841088a0b97d6e5bb9dce320 (diff)
downloadjasper-client-013d42ca921432ac5513d9c9b2427b3ffe0bb8a0.tar.gz
jasper-client-013d42ca921432ac5513d9c9b2427b3ffe0bb8a0.zip
PEP8 style fixes for brain.py
Diffstat (limited to 'client/brain.py')
-rw-r--r--client/brain.py5
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):