diff hgext/win32mbcs.py @ 8491:bd45047afaeb

win32mbcs: remove silly eval
author Matt Mackall <mpm@selenic.com>
date Sun, 17 May 2009 17:13:56 -0500
parents eee2319c5895
children e4ad46f9a004
line wrap: on
line diff
--- 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)