summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-09-17 07:09:08 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-09-17 07:09:08 (GMT)
commite4818f693749af358b1a2b3f96853c756f80856e (patch)
tree06ae031c6752e46e1c4bde93749d08e718d946f8 /Tools
parente787bce79c016cf7b9e743a6230ceb8e97b4a938 (diff)
downloadcpython-e4818f693749af358b1a2b3f96853c756f80856e.zip
cpython-e4818f693749af358b1a2b3f96853c756f80856e.tar.gz
cpython-e4818f693749af358b1a2b3f96853c756f80856e.tar.bz2
Remove the use of non-existing re.ASCII.
(fixes a regression in 3d46ef0c62c5, issue #18873)
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/scripts/findnocoding.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/scripts/findnocoding.py b/Tools/scripts/findnocoding.py
index 838e573..5d93290 100755
--- a/Tools/scripts/findnocoding.py
+++ b/Tools/scripts/findnocoding.py
@@ -32,7 +32,7 @@ except ImportError:
"no sophisticated Python source file search will be done.")
-decl_re = re.compile(r'^[ \t\f]*#.*coding[:=][ \t]*([-\w.]+)', re.ASCII)
+decl_re = re.compile(r'^[ \t\f]*#.*coding[:=][ \t]*([-\w.]+)')
def get_declaration(line):
match = decl_re.match(line)