]> granicus.if.org Git - python/commitdiff
default source encoding is now utf-8
authorBenjamin Peterson <benjamin@python.org>
Sat, 25 Oct 2008 23:43:00 +0000 (23:43 +0000)
committerBenjamin Peterson <benjamin@python.org>
Sat, 25 Oct 2008 23:43:00 +0000 (23:43 +0000)
Tools/scripts/findnocoding.py

index a049c0f2feea62f81872d8ac56195013b66ab7b3..84dc3e052fadfa113ccffeaed176e156fccd5677 100755 (executable)
@@ -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