diff options
author | Jorge Niedbalski <jorge@nimbic.com> | 2013-07-24 13:01:54 -0300 |
---|---|---|
committer | Jorge Niedbalski <jorge@nimbic.com> | 2013-07-24 13:01:54 -0300 |
commit | 4f25bb192beeeb100f6fcc4984af5a04a5c81411 (patch) | |
tree | 10dd09c691f471ef1a4cda43d664a41ef60eae89 /pip/req.py | |
parent | abf27b5bd207024b35885fd1fddd7803b488a3d4 (diff) | |
download | pip-4f25bb192beeeb100f6fcc4984af5a04a5c81411.tar.gz |
[pip/req] editable_options defaults to None
Diffstat (limited to 'pip/req.py')
-rw-r--r-- | pip/req.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pip/req.py b/pip/req.py index 2e24f256f..dcdf03758 100644 --- a/pip/req.py +++ b/pip/req.py @@ -38,7 +38,7 @@ class InstallRequirement(object): def __init__(self, req, comes_from, source_dir=None, editable=False, url=None, as_egg=False, update=True, prereleases=None, - editable_options={}): + editable_options=None): self.extras = () if isinstance(req, string_types): req = pkg_resources.Requirement.parse(req) @@ -47,6 +47,10 @@ class InstallRequirement(object): self.comes_from = comes_from self.source_dir = source_dir self.editable = editable + + if editable_options is None: + editable_options = {} + self.editable_options = editable_options self.url = url self.as_egg = as_egg |