Commits

Jędrzej Nowak committed 31de502

changed patch according to Jason R. Coombs comment

  • Participants
  • Parent commits 7bbe793

Comments (0)

Files changed (1)

File cherrypy/lib/reprconf.py

         if mod is None:
             raise KeyError()
     except KeyError:
-        # The last [''] is important.
-        mod = __import__(modulePath, globals(), locals())
+        __import__(modulePath)
+        mod = sys.modules[modulePath]   
     return mod
 
 def attributes(full_attribute_name):