##// END OF EJS Templates
py3: drop unrequired code from __init__.py...
Pulkit Goyal -
r31150:7c54917b default
parent child Browse files
Show More
@@ -307,13 +307,6 b' if sys.version_info[0] >= 3:'
307 if argidx is not None:
307 if argidx is not None:
308 _ensureunicode(argidx)
308 _ensureunicode(argidx)
309
309
310 # Bare open call (not an attribute on something else), the
311 # second argument (mode) must be a string, not bytes
312 elif fn == 'open' and not _isop(i - 1, '.'):
313 arg1idx = _findargnofcall(1)
314 if arg1idx is not None:
315 _ensureunicode(arg1idx)
316
317 # It changes iteritems to items as iteritems is not
310 # It changes iteritems to items as iteritems is not
318 # present in Python 3 world.
311 # present in Python 3 world.
319 elif fn == 'iteritems':
312 elif fn == 'iteritems':
@@ -327,7 +320,7 b' if sys.version_info[0] >= 3:'
327 # ``replacetoken`` or any mechanism that changes semantics of module
320 # ``replacetoken`` or any mechanism that changes semantics of module
328 # loading is changed. Otherwise cached bytecode may get loaded without
321 # loading is changed. Otherwise cached bytecode may get loaded without
329 # the new transformation mechanisms applied.
322 # the new transformation mechanisms applied.
330 BYTECODEHEADER = b'HG\x00\x07'
323 BYTECODEHEADER = b'HG\x00\x08'
331
324
332 class hgloader(importlib.machinery.SourceFileLoader):
325 class hgloader(importlib.machinery.SourceFileLoader):
333 """Custom module loader that transforms source code.
326 """Custom module loader that transforms source code.
General Comments 0
You need to be logged in to leave comments. Login now