changeset 8491:bd45047afaeb

win32mbcs: remove silly eval
author Matt Mackall <mpm@selenic.com>
date Sun, 17 May 2009 17:13:56 -0500
parents ea1981f65b3a
children d72d1a97408a
files hgext/win32mbcs.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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)