We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ca2cf8 commit 192edc0Copy full SHA for 192edc0
pypiup/requirement.py
@@ -27,7 +27,8 @@ def setUp(self, requirement):
27
regex = re.split("==", requirement)
28
try:
29
self.name = regex[0]
30
- self.current_version = regex[1]
+ # Ignore inline comments if any
31
+ self.current_version = regex[1].split("#")[0].rstrip()
32
self.get_package_info()
33
self.compare()
34
except IndexError:
0 commit comments