Diff of /pyke/knowledge_engine.py [9ac085] .. [0176eb] Maximize Restore

  Switch to side-by-side view

--- a/pyke/knowledge_engine.py
+++ b/pyke/knowledge_engine.py
@@ -25,6 +25,7 @@
 import sys
 import types
 import os, os.path
+import imp
 import re
 import contextlib
 
@@ -302,7 +303,7 @@
 
 def _get_target_pkg(target_name):
     if target_name in sys.modules:
-        return getattr(reload(sys.modules[target_name]), 'targets')
+        return getattr(imp.reload(sys.modules[target_name]), 'targets')
     return getattr(target_pkg.import_(target_name), 'targets')
 
 def test():