changeset 36254:84a6e39bc723

printenv: port to python3 Differential Revision: https://phab.mercurial-scm.org/D2290
author Augie Fackler <augie@google.com>
date Sat, 17 Feb 2018 00:28:24 -0500
parents fbc29d9f552f
children a0a004b29a51
files tests/printenv.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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()