Skip to content

Commit

Permalink
fix mutable default argument
Browse files Browse the repository at this point in the history
  • Loading branch information
kalefranz committed Feb 25, 2016
1 parent fb6fb99 commit 2dc4ccc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conda/resolve.py
Original file line number Diff line number Diff line change
Expand Up @@ -812,9 +812,9 @@ def install_specs(self, specs, installed, update_deps=True):
specs.append(spec)
return specs, bad_specs

def install(self, specs, installed=[], update_deps=True, returnall=False):
def install(self, specs, installed=None, update_deps=True, returnall=False):
len0 = len(specs)
specs, preserve = self.install_specs(specs, installed, update_deps)
specs, preserve = self.install_specs(specs, installed or [], update_deps)
pkgs = self.solve(specs, len0=len0, returnall=returnall)
self.restore_bad(pkgs, preserve)
return pkgs
Expand Down

0 comments on commit 2dc4ccc

Please sign in to comment.