[Python-3000-checkins] r67029 - python/branches/py3k/Tools/scripts/findnocoding.py

benjamin.peterson python-3000-checkins at python.org
Sun Oct 26 01:43:01 CEST 2008


Author: benjamin.peterson
Date: Sun Oct 26 01:43:00 2008
New Revision: 67029

Log:
default source encoding is now utf-8

Modified:
   python/branches/py3k/Tools/scripts/findnocoding.py

Modified: python/branches/py3k/Tools/scripts/findnocoding.py
==============================================================================
--- python/branches/py3k/Tools/scripts/findnocoding.py	(original)
+++ python/branches/py3k/Tools/scripts/findnocoding.py	Sun Oct 26 01:43:00 2008
@@ -62,11 +62,11 @@
         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


More information about the Python-3000-checkins mailing list