]> granicus.if.org Git - python/commitdiff
closes bpo-35643: Fix a SyntaxWarning: invalid escape sequence in Modules/_sha3/clean...
authorMickaël Schoentgen <contact@tiger-222.fr>
Wed, 2 Jan 2019 19:26:57 +0000 (20:26 +0100)
committerBenjamin Peterson <benjamin@python.org>
Wed, 2 Jan 2019 19:26:57 +0000 (11:26 -0800)
Misc/NEWS.d/next/Library/2019-01-02-20-04-49.bpo-35643.DaMiaV.rst [new file with mode: 0644]
Modules/_sha3/cleanup.py

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 (file)
index 0000000..0b47bb6
--- /dev/null
@@ -0,0 +1,2 @@
+Fixed a SyntaxWarning: invalid escape sequence in Modules/_sha3/cleanup.py.
+Patch by Mickaël Schoentgen.
index 17c56b34b261abd5d50869911e75af4145cd76c2..4f53681b49e67bc200efab1eee5cf9cf365b5fe7 100755 (executable)
@@ -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##")