mirror of https://github.com/python/cpython
default source encoding is now utf-8
This commit is contained in:
parent
e8022b4b35
commit
cff882ce21
|
@ -62,11 +62,11 @@ def needs_declaration(fullpath):
|
||||||
infile.close()
|
infile.close()
|
||||||
return False
|
return False
|
||||||
|
|
||||||
# check the whole file for non-ASCII characters
|
# check the whole file for non utf-8 characters
|
||||||
rest = infile.read()
|
rest = infile.read()
|
||||||
infile.close()
|
infile.close()
|
||||||
|
|
||||||
if has_correct_encoding(line1+line2+rest, "ascii"):
|
if has_correct_encoding(line1+line2+rest, "utf-8"):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in New Issue