From 013d42ca921432ac5513d9c9b2427b3ffe0bb8a0 Mon Sep 17 00:00:00 2001 From: schneefux Date: Thu, 11 Sep 2014 10:47:25 -0400 Subject: PEP8 style fixes for brain.py --- client/brain.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'client') 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): -- cgit v1.3.1