From 8a7458103252f57fef07e76dfa4fc82691b2a420 Mon Sep 17 00:00:00 2001 From: Nate Prewitt Date: Thu, 26 Oct 2017 22:32:41 -0700 Subject: [PATCH] s/FILE_LIST/SCHEME_LIST/g --- pipenv/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pipenv/utils.py b/pipenv/utils.py index d63190af..2e794514 100644 --- a/pipenv/utils.py +++ b/pipenv/utils.py @@ -39,7 +39,7 @@ specifiers = [k for k in lookup.keys()] # List of version control systems we support. VCS_LIST = ('git', 'svn', 'hg', 'bzr') -FILE_LIST = ('http://', 'https://', 'ftp://', 'file:///') +SCHEME_LIST = ('http://', 'https://', 'ftp://', 'file:///') requests = requests.Session() @@ -776,7 +776,7 @@ def is_file(package): if os.path.exists(str(package)): return True - for start in FILE_LIST: + for start in SCHEME_LIST: if str(package).startswith(start): return True @@ -793,7 +793,7 @@ def pep440_version(version): def pep423_name(name): """Normalize package name to PEP 423 style standard.""" name = name.lower() - if any(i not in name for i in (VCS_LIST+FILE_LIST)): + if any(i not in name for i in (VCS_LIST+SCHEME_LIST)): return name.replace('_', '-') else: return name