changeset 30476:8a9681b963a3

win32mbcs: drop code that was catering to Python 2.3 and earlier
author Augie Fackler <augie@google.com>
date Mon, 21 Nov 2016 17:48:13 -0500
parents ef9f197188ec
children d2c40510104e
files hgext/win32mbcs.py
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/win32mbcs.py	Mon Nov 21 17:47:11 2016 -0500
+++ b/hgext/win32mbcs.py	Mon Nov 21 17:48:13 2016 -0500
@@ -138,10 +138,7 @@
     func = getattr(module, name)
     def f(*args, **kwds):
         return wrapper(func, args, kwds)
-    try:
-        f.__name__ = func.__name__ # fails with Python 2.3
-    except Exception:
-        pass
+    f.__name__ = func.__name__
     setattr(module, name, f)
 
 # List of functions to be wrapped.