Commit 0ea8d266 authored by Jason R. Coombs's avatar Jason R. Coombs Committed by GitHub

Merge pull request #703 from minrk/del-dist

fix NameError when initial working_set is empty
parents 39912c7e ca9749b3
......@@ -2981,6 +2981,7 @@ def _initialize_master_working_set():
# ensure that all distributions added to the working set in the future
# (e.g. by calling ``require()``) will get activated as well,
# with higher priority (replace=True).
dist = None # ensure dist is defined for del dist below
for dist in working_set:
dist.activate(replace=False)
del dist
......
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