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 | 03c8a473999b08710ae3661724cf1bf1d76bc555 (patch) | |
tree | e64559b751087b181d2c61105b88c0bf53b4c63a /Lib/sysconfig.py | |
parent | d3d81bf758e1b6a25c9f3e66d5e49e366a805365 (diff) | |
download | cpython-03c8a473999b08710ae3661724cf1bf1d76bc555.tar.gz |
#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 'Lib/sysconfig.py')
-rw-r--r-- | Lib/sysconfig.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py index ef530617a3..7b78440ed3 100644 --- a/Lib/sysconfig.py +++ b/Lib/sysconfig.py @@ -215,7 +215,7 @@ def _parse_makefile(filename, vars=None): # Regexes needed for parsing Makefile (and similar syntaxes, # like old-style Setup files). import re - _variable_rx = re.compile("([a-zA-Z][a-zA-Z0-9_]+)\s*=\s*(.*)") + _variable_rx = re.compile(r"([a-zA-Z][a-zA-Z0-9_]+)\s*=\s*(.*)") _findvar1_rx = re.compile(r"\$\(([A-Za-z][A-Za-z0-9_]*)\)") _findvar2_rx = re.compile(r"\${([A-Za-z][A-Za-z0-9_]*)}") |