printenv: port to python3
authorAugie Fackler <augie@google.com>
Sat, 17 Feb 2018 00:28:24 -0500
changeset 36254 84a6e39bc723
parent 36253 fbc29d9f552f
child 36255 a0a004b29a51
printenv: port to python3 Differential Revision: https://phab.mercurial-scm.org/D2290
tests/printenv.py
--- a/tests/printenv.py	Thu Feb 15 09:18:20 2018 -0500
+++ b/tests/printenv.py	Sat Feb 17 00:28:24 2018 -0500
@@ -35,7 +35,7 @@
 
 # variables with empty values may not exist on all platforms, filter
 # them now for portability sake.
-env = [(k, v) for k, v in os.environ.iteritems()
+env = [(k, v) for k, v in os.environ.items()
        if k.startswith("HG_") and v]
 env.sort()