diff tests/fakedirstatewritetime.py @ 36360:58c1368ab629

py3: use dict.items() instead of dict.iteritems() in tests dict.iteritems() is not present in Python 3. Differential Revision: https://phab.mercurial-scm.org/D2353
author Pulkit Goyal <7895pulkit@gmail.com>
date Mon, 19 Feb 2018 21:18:52 +0530
parents ac04f17b7041
children c6061cadb400
line wrap: on
line diff
--- a/tests/fakedirstatewritetime.py	Mon Feb 19 15:28:54 2018 +0530
+++ b/tests/fakedirstatewritetime.py	Mon Feb 19 21:18:52 2018 +0530
@@ -29,7 +29,7 @@
     # execute what original parsers.pack_dirstate should do actually
     # for consistency
     actualnow = int(now)
-    for f, e in dmap.iteritems():
+    for f, e in dmap.items():
         if e[0] == 'n' and e[3] == actualnow:
             e = parsers.dirstatetuple(e[0], e[1], e[2], -1)
             dmap[f] = e