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

login
register
mail settings
Submitter Augie Fackler
Date Nov. 21, 2016, 11:48 p.m.
Message ID <90385d2c7d7b968c4e36.1479772084@arthedain.pit.corp.google.com>
Download mbox | patch
Permalink /patch/17670/
State Accepted
Headers show

Comments

Augie Fackler - Nov. 21, 2016, 11:48 p.m.
# HG changeset patch
# User Augie Fackler <augie@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

Patch

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.