Skip to content

Commit

Permalink
Merge pull request #260 from tirkarthi/fix-warnings
Browse files Browse the repository at this point in the history
Fix deprecation warnings due to invalid escape sequences.
  • Loading branch information
frostming authored Nov 12, 2020
2 parents 17f8967 + 83a8cc4 commit fd646ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/requirementslib/models/markers.py
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ def parse_marker_dict(marker_dict):


def _contains_micro_version(version_string):
return re.search("\d+\.\d+\.\d+", version_string) is not None
return re.search(r"\d+\.\d+\.\d+", version_string) is not None


def format_pyversion(parts):
Expand Down
2 changes: 1 addition & 1 deletion tests/artifacts/environ_config/environ_config/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def find_meta(meta):
read("README.rst") + "\n\n" +
"Release Information\n" +
"===================\n\n" +
re.search("(\d+.\d.\d \(.*?\)\n.*?)(\n\n\n----\n)",
re.search("(\\d+.\\d.\\d \\(.*?\\)\n.*?)(\n\n\n----\n)",
read("CHANGELOG.rst"), re.S).group(1) +
"\n\n`Full changelog " +
"<{uri}en/stable/changelog.html>`_.\n\n".format(uri=URI) +
Expand Down

0 comments on commit fd646ea

Please sign in to comment.