# HG changeset patch # User Augie Fackler # Date 2016-11-21 22:48:13 # Node ID 8a9681b963a31fdc1766dccff799e556ee41a78c # Parent ef9f197188ece9e53820be49cd07245926db211a 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.