summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-10-25 23:43:00 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-10-25 23:43:00 (GMT)
commitcff882ce21f0870da9f59f4e1dad094caa379f5a (patch)
treed042d845da0a3c610cd7df52a133450ef2eb1934 /Tools
parente8022b4b358a502d20f338f8bcd7f125b045c355 (diff)
downloadcpython-cff882ce21f0870da9f59f4e1dad094caa379f5a.zip
cpython-cff882ce21f0870da9f59f4e1dad094caa379f5a.tar.gz
cpython-cff882ce21f0870da9f59f4e1dad094caa379f5a.tar.bz2
default source encoding is now utf-8
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/scripts/findnocoding.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/scripts/findnocoding.py b/Tools/scripts/findnocoding.py
index a049c0f..84dc3e0 100755
--- a/Tools/scripts/findnocoding.py
+++ b/Tools/scripts/findnocoding.py
@@ -62,11 +62,11 @@ def needs_declaration(fullpath):
infile.close()
return False
- # check the whole file for non-ASCII characters
+ # check the whole file for non utf-8 characters
rest = infile.read()
infile.close()
- if has_correct_encoding(line1+line2+rest, "ascii"):
+ if has_correct_encoding(line1+line2+rest, "utf-8"):
return False
return True