mirror of
https://github.com/python/cpython.git
synced 2025-08-27 20:25:18 +00:00
Cleanup findnocoding.py and pysource.py scripts (with infile/infile.close)
This commit is contained in:
parent
98516a6930
commit
a90f311d05
2 changed files with 4 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue