summaryrefslogtreecommitdiff
path: root/src/pip
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2017-09-15 23:34:19 +0300
committerVille Skyttä <ville.skytta@iki.fi>2017-09-15 23:35:45 +0300
commit8fb2b6318f06ed289e3faaf0bdcfb6e8b658d59c (patch)
tree9f5d49c0e995f7e9fac88faa670297e21d11e2b2 /src/pip
parent54b983c2bd56dfbd61bbcc2dcc9177d4e55e25af (diff)
downloadpip-8fb2b6318f06ed289e3faaf0bdcfb6e8b658d59c.tar.gz
Python 3.6 invalid escape sequence deprecation fixes
https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior
Diffstat (limited to 'src/pip')
-rw-r--r--src/pip/_internal/index.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pip/_internal/index.py b/src/pip/_internal/index.py
index d59c12466..ee6651420 100644
--- a/src/pip/_internal/index.py
+++ b/src/pip/_internal/index.py
@@ -289,7 +289,7 @@ class PackageFinder(object):
)
pri = -(wheel.support_index_min(self.valid_tags))
if wheel.build_tag is not None:
- match = re.match('^(\d+)(.*)$', wheel.build_tag)
+ match = re.match(r'^(\d+)(.*)$', wheel.build_tag)
build_tag_groups = match.groups()
build_tag = (int(build_tag_groups[0]), build_tag_groups[1])
else: # sdist