aboutsummaryrefslogtreecommitdiffstats
path: root/versionpredicate.py
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2016-09-08 13:59:53 -0400
committerR David Murray <rdmurray@bitdance.com>2016-09-08 13:59:53 -0400
commitfe41e077426b41fee85c7bd5800029796fb4b8c9 (patch)
tree686bdbb437f4be8f57274c58831adf0f1627f284 /versionpredicate.py
parentfe96d2a5d605391c98391e8b761f57ed38baec5b (diff)
downloadexternal_python_setuptools-fe41e077426b41fee85c7bd5800029796fb4b8c9.tar.gz
external_python_setuptools-fe41e077426b41fee85c7bd5800029796fb4b8c9.tar.bz2
external_python_setuptools-fe41e077426b41fee85c7bd5800029796fb4b8c9.zip
#27364: fix "incorrect" uses of escape character in the stdlib.
And most of the tools. Patch by Emanual Barry, reviewed by me, Serhiy Storchaka, and Martin Panter.
Diffstat (limited to 'versionpredicate.py')
-rw-r--r--versionpredicate.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/versionpredicate.py b/versionpredicate.py
index b0dd9f45..062c98f2 100644
--- a/versionpredicate.py
+++ b/versionpredicate.py
@@ -154,7 +154,7 @@ def split_provision(value):
global _provision_rx
if _provision_rx is None:
_provision_rx = re.compile(
- "([a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*)(?:\s*\(\s*([^)\s]+)\s*\))?$",
+ r"([a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*)(?:\s*\(\s*([^)\s]+)\s*\))?$",
re.ASCII)
value = value.strip()
m = _provision_rx.match(value)