[Python-checkins] closes bpo-35643: Fix a SyntaxWarning: invalid escape sequence in Modules/_sha3/cleanup.py (GH-11411)

Benjamin Peterson webhook-mailer at python.org
Wed Jan 2 14:27:03 EST 2019


https://github.com/python/cpython/commit/d466c43e55cd32af84e353f0e9a48b09b7534f61
commit: d466c43e55cd32af84e353f0e9a48b09b7534f61
branch: master
author: Mickaël Schoentgen <contact at tiger-222.fr>
committer: Benjamin Peterson <benjamin at python.org>
date: 2019-01-02T11:26:57-08:00
summary:

closes bpo-35643: Fix a SyntaxWarning: invalid escape sequence in Modules/_sha3/cleanup.py (GH-11411)

files:
A Misc/NEWS.d/next/Library/2019-01-02-20-04-49.bpo-35643.DaMiaV.rst
M 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
index 000000000000..0b47bb61fc05
--- /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 17c56b34b261..4f53681b49e6 100755
--- a/Modules/_sha3/cleanup.py
+++ b/Modules/_sha3/cleanup.py
@@ -8,7 +8,7 @@
 import re
 
 CPP1 = re.compile("^//(.*)")
-CPP2 = re.compile("\ //(.*)")
+CPP2 = re.compile(r"\ //(.*)")
 
 STATICS = ("void ", "int ", "HashReturn ",
            "const UINT64 ", "UINT16 ", "    int prefix##")



More information about the Python-checkins mailing list