Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Support editable repo urls with an auth string

  • Loading branch information...
commit dcb1c2e441b5a6c2f00c8881ee9fa79bdd643940 1 parent c1c7921
@dcramer authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/piplint/__init__.py
View
4 src/piplint/__init__.py
@@ -20,7 +20,6 @@ def check_requirements(requirement_files, strict=False, venv=None):
about the missing dependency.
"""
version_re = re.compile(r'^([^<>=\s#]+)\s*(>=|>|<|<=|==)?\s*([^<>=\s#]+)?(?:\s*#.*)?$')
- checkout_re = re.compile(r'[#@]')
def parse_package_line(line):
try:
@@ -43,7 +42,8 @@ def parse_checkout_line(whole_line):
# Check if there is a revision specified
if '@' in line:
- (url, rev, eggname) = checkout_re.split(line)
+ url, last_bit = line.rsplit('@', 1)
+ rev, eggname = last_bit.split('#', 1)
return (url, '==', rev, line)
else:
(url, eggname) = line.split('#')
Please sign in to comment.
Something went wrong with that request. Please try again.