Show More
@@ -283,7 +283,8 b' if sys.version_info[0] >= 3:' | |||
|
283 | 283 | continue |
|
284 | 284 | r, c = t.start |
|
285 | 285 | l = (b'; from mercurial.pycompat import ' |
|
286 |
b'delattr, getattr, hasattr, setattr, xrange, |
|
|
286 | b'delattr, getattr, hasattr, setattr, xrange, ' | |
|
287 | b'open, unicode\n') | |
|
287 | 288 | for u in tokenize.tokenize(io.BytesIO(l).readline): |
|
288 | 289 | if u.type in (tokenize.ENCODING, token.ENDMARKER): |
|
289 | 290 | continue |
@@ -323,7 +324,7 b' if sys.version_info[0] >= 3:' | |||
|
323 | 324 | # ``replacetoken`` or any mechanism that changes semantics of module |
|
324 | 325 | # loading is changed. Otherwise cached bytecode may get loaded without |
|
325 | 326 | # the new transformation mechanisms applied. |
|
326 |
BYTECODEHEADER = b'HG\x00\x0 |
|
|
327 | BYTECODEHEADER = b'HG\x00\x0a' | |
|
327 | 328 | |
|
328 | 329 | class hgloader(importlib.machinery.SourceFileLoader): |
|
329 | 330 | """Custom module loader that transforms source code. |
General Comments 0
You need to be logged in to leave comments.
Login now