Discussion:
[Python-3000-checkins] r67029 - python/branches/py3k/Tools/scripts/findnocoding.py
benjamin.peterson
2008-10-25 23:43:01 UTC
Permalink
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

Loading...