mercurial/__init__.py
changeset 43104 74802979dd9d
parent 43103 c95b2f40db7c
child 43105 649d3ac37a12
--- a/mercurial/__init__.py	Sun Oct 06 17:45:05 2019 -0400
+++ b/mercurial/__init__.py	Sun Oct 06 17:59:15 2019 -0400
@@ -117,7 +117,7 @@
 
                 # It changes iteritems/values to items/values as they are not
                 # present in Python 3 world.
-                if fn in ('iteritems', 'itervalues') and not (
+                if fn == 'iteritems' and not (
                     tokens[i - 1].type == token.NAME
                     and tokens[i - 1].string == 'def'
                 ):
@@ -131,7 +131,7 @@
     # ``replacetoken`` or any mechanism that changes semantics of module
     # loading is changed. Otherwise cached bytecode may get loaded without
     # the new transformation mechanisms applied.
-    BYTECODEHEADER = b'HG\x00\x14'
+    BYTECODEHEADER = b'HG\x00\x15'
 
     class hgloader(importlib.machinery.SourceFileLoader):
         """Custom module loader that transforms source code.