diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-01-06 23:25:06 -0800 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2019-01-06 23:25:06 -0800 |
commit | 3e0144a6c95433f347bb7e44a98c84deae8853ff (patch) | |
tree | 9ab61d6417c016d5910201fca044ebe32e3ea53a | |
parent | [3.6] Bump copyright years to 2019. (GH-11407) (diff) | |
download | cpython-3e0144a6c95433f347bb7e44a98c84deae8853ff.tar.gz cpython-3e0144a6c95433f347bb7e44a98c84deae8853ff.tar.bz2 cpython-3e0144a6c95433f347bb7e44a98c84deae8853ff.zip |
closes bpo-35643: Fix a SyntaxWarning: invalid escape sequence in Modules/_sha3/cleanup.py (GH-11413)
(cherry picked from commit d466c43e55cd32af84e353f0e9a48b09b7534f61)
Co-authored-by: Mickaël Schoentgen <contact@tiger-222.fr>
-rw-r--r-- | Misc/NEWS.d/next/Library/2019-01-02-20-04-49.bpo-35643.DaMiaV.rst | 2 | ||||
-rwxr-xr-x | Modules/_sha3/cleanup.py | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/Misc/NEWS.d/next/Library/2019-01-02-20-04-49.bpo-35643.DaMiaV.rst b/Misc/NEWS.d/next/Library/2019-01-02-20-04-49.bpo-35643.DaMiaV.rst new file mode 100644 index 00000000000..0b47bb61fc0 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2019-01-02-20-04-49.bpo-35643.DaMiaV.rst @@ -0,0 +1,2 @@ +Fixed a SyntaxWarning: invalid escape sequence in Modules/_sha3/cleanup.py. +Patch by Mickaël Schoentgen. diff --git a/Modules/_sha3/cleanup.py b/Modules/_sha3/cleanup.py index 17c56b34b26..4f53681b49e 100755 --- a/Modules/_sha3/cleanup.py +++ b/Modules/_sha3/cleanup.py @@ -8,7 +8,7 @@ import os import re CPP1 = re.compile("^//(.*)") -CPP2 = re.compile("\ //(.*)") +CPP2 = re.compile(r"\ //(.*)") STATICS = ("void ", "int ", "HashReturn ", "const UINT64 ", "UINT16 ", " int prefix##") |