Skip to content

Commit

Permalink
Make a copy of a list before mutating it
Browse files Browse the repository at this point in the history
  • Loading branch information
asmeurer committed Sep 30, 2015
1 parent ae72192 commit 0854ea5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conda/cli/main_clean.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def find_lock():

from conda.lock import LOCKFN

lock_dirs = config.pkgs_dirs
lock_dirs = config.pkgs_dirs[:]
lock_dirs += [config.root_dir]
for envs_dir in config.envs_dirs:
if os.path.exists(envs_dir):
Expand Down

0 comments on commit 0854ea5

Please sign in to comment.