[PATCH 2 of 5 oldpy] win32mbcs: drop code that was catering to Python 2.3 and earlier

Augie Fackler raf at durin42.com
Mon Nov 21 18:48:04 EST 2016


# HG changeset patch
# User Augie Fackler <augie at google.com>
# Date 1479768493 18000
#      Mon Nov 21 17:48:13 2016 -0500
# Node ID 90385d2c7d7b968c4e36398f33f22fe9b28ec05b
# Parent  2959ba0b3a7b265f6e717faaa1f45292b8f606e9
win32mbcs: drop code that was catering to Python 2.3 and earlier

diff --git a/hgext/win32mbcs.py b/hgext/win32mbcs.py
--- a/hgext/win32mbcs.py
+++ b/hgext/win32mbcs.py
@@ -138,10 +138,7 @@ def wrapname(name, wrapper):
     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.


More information about the Mercurial-devel mailing list