Closed jaraco closed 4 years ago
In GitLab by @gahjelle on May 7, 2019, 18:39
I think this could be fixed with the following change?
Original code in api.py
line 247:
def _read_egg_info_reqs(self):
source = self.read_text('requires.txt')
return self._deps_from_requires_text(source)
Add a simple test in the return statement:
def _read_egg_info_reqs(self):
source = self.read_text('requires.txt')
return source and self._deps_from_requires_text(source)
This would be consistent with how the "sibling"-methods are implemented
In GitLab by @gahjelle on May 7, 2019, 19:32
mentioned in merge request !58
In GitLab by @jaraco on May 7, 2019, 20:09
This looks good, though I think it will be addressed in !57, inspired by !38. Glad to see you had the same instincts as us.
In GitLab by @gahjelle on May 7, 2019, 18:37
Consider the following example:
It would probably be more consistent to return
None
in this case?