Patchwork D2290: printenv: port to python3

login
register
mail settings
Submitter phabricator
Date Feb. 17, 2018, 6:41 a.m.
Message ID <differential-rev-PHID-DREV-zbmfbbinf37jmvace3wl-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/28008/
State Superseded
Headers show

Comments

phabricator - Feb. 17, 2018, 6:41 a.m.
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D2290

AFFECTED FILES
  tests/printenv.py

CHANGE DETAILS




To: durin42, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/tests/printenv.py b/tests/printenv.py
--- a/tests/printenv.py
+++ b/tests/printenv.py
@@ -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()