win32mbcs: remove silly eval
authorMatt Mackall <mpm@selenic.com>
Sun, 17 May 2009 17:13:56 -0500
changeset 8491 bd45047afaeb
parent 8490 ea1981f65b3a
child 8492 d72d1a97408a
win32mbcs: remove silly eval
hgext/win32mbcs.py
--- a/hgext/win32mbcs.py	Sun May 17 23:07:23 2009 +0200
+++ b/hgext/win32mbcs.py	Sun May 17 17:13:56 2009 -0500
@@ -88,7 +88,7 @@
     idx = name.rfind('.')
     module = name[:idx]
     name = name[idx+1:]
-    module = eval(module)
+    module = globals()[module]
     func = getattr(module, name)
     def f(*args):
         return wrapper(func, args)