mirror of
https://github.com/facebook/sapling.git
synced 2024-10-08 15:57:43 +03:00
win32mbcs: drop code that was catering to Python 2.3 and earlier
This commit is contained in:
parent
05fae84175
commit
049fe2f2ce
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user