diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2012-08-01 22:05:41 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2012-08-01 22:05:41 (GMT) |
commit | a90f311d0592f6ab56068441413a1925bd7393f4 (patch) | |
tree | 96934bca2056b743f2f3192d067416f512ced0fd /Tools/scripts/findnocoding.py | |
parent | 98516a6930acdd39f74c609817cbf19be6c4a7df (diff) | |
download | cpython-a90f311d0592f6ab56068441413a1925bd7393f4.zip cpython-a90f311d0592f6ab56068441413a1925bd7393f4.tar.gz cpython-a90f311d0592f6ab56068441413a1925bd7393f4.tar.bz2 |
Cleanup findnocoding.py and pysource.py scripts (with infile/infile.close)
Diffstat (limited to 'Tools/scripts/findnocoding.py')
-rwxr-xr-x | Tools/scripts/findnocoding.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Tools/scripts/findnocoding.py b/Tools/scripts/findnocoding.py index d664386..b3e9dc7 100755 --- a/Tools/scripts/findnocoding.py +++ b/Tools/scripts/findnocoding.py @@ -60,7 +60,6 @@ def needs_declaration(fullpath): 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 |