summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-11-01 12:01:58 -0500
committerJason R. Coombs <jaraco@jaraco.com>2015-11-01 12:01:58 -0500
commitff260515fc50b2aaf07558f9ded076c7450fc614 (patch)
treed4d57e1b16060819a60155afdf2a6400beb2bbc4
parentae6c73f07680da77345f5ccfac4facde30ad4d7e (diff)
parent57ebfa41e0f96b97e599ecd931b7ae8a143e096e (diff)
downloadpython-setuptools-git-ff260515fc50b2aaf07558f9ded076c7450fc614.tar.gz
Merge pull request #29 from vmarkovtsev/patch-1
Fix "dictionary changed size during iteration"
-rw-r--r--pkg_resources/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg_resources/__init__.py b/pkg_resources/__init__.py
index ae363755..df662dfe 100644
--- a/pkg_resources/__init__.py
+++ b/pkg_resources/__init__.py
@@ -1536,7 +1536,7 @@ class MarkerEvaluation(object):
# markerlib implements Metadata 1.2 (PEP 345) environment markers.
# Translate the variables to Metadata 2.0 (PEP 426).
env = _markerlib.default_environment()
- for key in env.keys():
+ for key in tuple(env.keys()):
new_key = key.replace('.', '_')
env[new_key] = env.pop(key)
try: