Commit 475e7c86 authored by Jason R. Coombs's avatar Jason R. Coombs

Meant 'items'

parent d501896d
......@@ -69,7 +69,7 @@ def patch_env(**replacements):
os.environ.update(replacements)
# remove values that are null
null_keys = (key for (key, value) in replacements if value is None)
null_keys = (key for (key, value) in replacements.items() if value is None)
list(map(os.environ.pop, (null_keys)))
yield
......
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