Commit ff260515 authored by Jason R. Coombs's avatar Jason R. Coombs

Merge pull request #29 from vmarkovtsev/patch-1

Fix "dictionary changed size during iteration"
parents ae6c73f0 57ebfa41
...@@ -1536,7 +1536,7 @@ class MarkerEvaluation(object): ...@@ -1536,7 +1536,7 @@ class MarkerEvaluation(object):
# markerlib implements Metadata 1.2 (PEP 345) environment markers. # markerlib implements Metadata 1.2 (PEP 345) environment markers.
# Translate the variables to Metadata 2.0 (PEP 426). # Translate the variables to Metadata 2.0 (PEP 426).
env = _markerlib.default_environment() env = _markerlib.default_environment()
for key in env.keys(): for key in tuple(env.keys()):
new_key = key.replace('.', '_') new_key = key.replace('.', '_')
env[new_key] = env.pop(key) env[new_key] = env.pop(key)
try: try:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment