diff options
| author | Benjamin Peterson <benjamin@python.org> | 2008-10-25 23:43:00 +0000 | 
|---|---|---|
| committer | Benjamin Peterson <benjamin@python.org> | 2008-10-25 23:43:00 +0000 | 
| commit | cff882ce21f0870da9f59f4e1dad094caa379f5a (patch) | |
| tree | d042d845da0a3c610cd7df52a133450ef2eb1934 /Tools/scripts/findnocoding.py | |
| parent | e8022b4b358a502d20f338f8bcd7f125b045c355 (diff) | |
| download | cpython-git-cff882ce21f0870da9f59f4e1dad094caa379f5a.tar.gz | |
default source encoding is now utf-8
Diffstat (limited to 'Tools/scripts/findnocoding.py')
| -rwxr-xr-x | Tools/scripts/findnocoding.py | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/Tools/scripts/findnocoding.py b/Tools/scripts/findnocoding.py index a049c0f2fe..84dc3e052f 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 | 
