Mercurial > cpython-lru_cache-weakref
diff Tools/scripts/findnocoding.py @ 85734:f16855d6d4e1 2.7
Remove the use of non-existing re.ASCII.
(fixes a regression in 3d46ef0c62c5, issue #18873)
| author | Serhiy Storchaka <storchaka@gmail.com> |
|---|---|
| date | Tue, 17 Sep 2013 10:09:08 +0300 |
| parents | 3d46ef0c62c5 |
| children |
line wrap: on
line diff
--- a/Tools/scripts/findnocoding.py Tue Sep 17 00:00:46 2013 +0300 +++ b/Tools/scripts/findnocoding.py Tue Sep 17 10:09:08 2013 +0300 @@ -32,7 +32,7 @@ "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)
