Mercurial > cpython-lru_cache-weakref
diff Tools/scripts/findnocoding.py @ 78376:8ace059cdffd
Cleanup findnocoding.py and pysource.py scripts (with infile/infile.close)
| author | Victor Stinner <victor.stinner@gmail.com> |
|---|---|
| date | Thu, 02 Aug 2012 00:05:41 +0200 |
| parents | 67d36e8ddcfc |
| children | 2dfe8262093c |
line wrap: on
line diff
--- a/Tools/scripts/findnocoding.py Wed Aug 01 20:12:51 2012 +0200 +++ b/Tools/scripts/findnocoding.py Thu Aug 02 00:05:41 2012 +0200 @@ -60,7 +60,6 @@ if get_declaration(line1) or get_declaration(line2): # the file does have an encoding declaration, so trust it - infile.close() return False # check the whole file for non utf-8 characters
