Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cff882c

Browse files
committed
default source encoding is now utf-8
1 parent e8022b4 commit cff882c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Tools/scripts/findnocoding.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ def needs_declaration(fullpath):
6262
infile.close()
6363
return False
6464

65-
# check the whole file for non-ASCII characters
65+
# check the whole file for non utf-8 characters
6666
rest = infile.read()
6767
infile.close()
6868

69-
if has_correct_encoding(line1+line2+rest, "ascii"):
69+
if has_correct_encoding(line1+line2+rest, "utf-8"):
7070
return False
7171

7272
return True

0 commit comments

Comments
 (0)