Fix requirementslib synax error

Signed-off-by: Dan Ryan <dan@danryan.co>
This commit is contained in:
Dan Ryan
2018-11-03 21:58:25 -04:00
parent 77348503ec
commit c8cf4dd4cf
+2 -2
View File
@@ -298,9 +298,9 @@ class FileRequirement(BaseRequirement):
else:
_path = self.path
if self.editable:
_ireq = pip_shims.shims.ireq_from_editable(_path.as_uri())
_ireq = pip_shims.shims.install_req_from_editable(_path.as_uri())
else:
_ireq = pip_shims.shims.ireq_from_line(_path.as_posix())
_ireq = pip_shims.shims.install_req_from_line(_path.as_posix())
dist = make_abstract_dist(_ireq).get_dist()
name = dist.project_name
except (TypeError, ValueError, AttributeError) as e: