diff options
| author | R David Murray <rdmurray@bitdance.com> | 2016-09-08 13:59:53 -0400 |
|---|---|---|
| committer | R David Murray <rdmurray@bitdance.com> | 2016-09-08 13:59:53 -0400 |
| commit | fe41e077426b41fee85c7bd5800029796fb4b8c9 (patch) | |
| tree | 686bdbb437f4be8f57274c58831adf0f1627f284 /versionpredicate.py | |
| parent | fe96d2a5d605391c98391e8b761f57ed38baec5b (diff) | |
| download | external_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.py | 2 |
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) |
