Skip to content

Commit

Permalink
Merge pull request #4728 from scop/escseq
Browse files Browse the repository at this point in the history
Python 3.6 invalid escape sequence deprecation fixes
  • Loading branch information
pradyunsg committed Oct 6, 2017
2 parents ea66415 + 8fb2b63 commit 02c219e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pip/_internal/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def _candidate_sort_key(self, candidate):
)
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
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/test_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
_conflict_finder_re = re.compile(
# Conflicting Requirements: \
# A 1.0.0 requires B == 2.0.0, C 1.0.0 requires B == 1.0.0.
"""
r"""
(?P<package>[\w\-_]+?)
[ ]
(?P<version>\S+?)
Expand Down

0 comments on commit 02c219e

Please sign in to comment.