summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMickaël Schoentgen <contact@tiger-222.fr>2019-01-02 19:26:57 (GMT)
committerBenjamin Peterson <benjamin@python.org>2019-01-02 19:26:57 (GMT)
commitd466c43e55cd32af84e353f0e9a48b09b7534f61 (patch)
tree25dd81bd8e61213028f796cf1910fc5f99082511
parent9a69ae8a78785105ded02b083b2e5cd2dd939307 (diff)
downloadcpython-d466c43e55cd32af84e353f0e9a48b09b7534f61.zip
cpython-d466c43e55cd32af84e353f0e9a48b09b7534f61.tar.gz
cpython-d466c43e55cd32af84e353f0e9a48b09b7534f61.tar.bz2
closes bpo-35643: Fix a SyntaxWarning: invalid escape sequence in Modules/_sha3/cleanup.py (GH-11411)
-rw-r--r--Misc/NEWS.d/next/Library/2019-01-02-20-04-49.bpo-35643.DaMiaV.rst2
-rwxr-xr-xModules/_sha3/cleanup.py2
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 0000000..0b47bb6
--- /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 17c56b3..4f53681 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##")