Mercurial > public > mercurial-scm > hg-stable
diff tests/printenv.py @ 36287: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 | 036787c10b16 |
children | bacbe829c2bf |
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()