diff options
-rw-r--r-- | src/pip/_internal/req/req_file.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pip/_internal/req/req_file.py b/src/pip/_internal/req/req_file.py index 4f61f3cfd..d7e40729d 100644 --- a/src/pip/_internal/req/req_file.py +++ b/src/pip/_internal/req/req_file.py @@ -23,7 +23,7 @@ from pip._internal.req.constructors import ( __all__ = ['parse_requirements'] SCHEME_RE = re.compile(r'^(http|https|file):', re.I) -COMMENT_RE = re.compile(r'\s*#.*$') +COMMENT_RE = re.compile(r'(^|\s+)#.*$') # Matches environment variable-style values in '${MY_VARIABLE_1}' with the # variable name consisting of only uppercase letters, digits or the '_' |