diff options
author | Georg Brandl <georg@python.org> | 2008-05-16 15:23:30 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-05-16 15:23:30 (GMT) |
commit | 8efadf5d6613e76dfc5476f58adb9a2135173129 (patch) | |
tree | 93ea7c3914c65801cd3844aa0ea1304676076940 /Tools/scripts/findnocoding.py | |
parent | d11ae5d6ecda1d233af651a360c9f9140992f05d (diff) | |
download | cpython-8efadf5d6613e76dfc5476f58adb9a2135173129.zip cpython-8efadf5d6613e76dfc5476f58adb9a2135173129.tar.gz cpython-8efadf5d6613e76dfc5476f58adb9a2135173129.tar.bz2 |
Ran 2to3 over scripts directory.
Diffstat (limited to 'Tools/scripts/findnocoding.py')
-rwxr-xr-x | Tools/scripts/findnocoding.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/scripts/findnocoding.py b/Tools/scripts/findnocoding.py index ade4390..a049c0f 100755 --- a/Tools/scripts/findnocoding.py +++ b/Tools/scripts/findnocoding.py @@ -42,7 +42,7 @@ def get_declaration(line): def has_correct_encoding(text, codec): try: - unicode(text, codec) + str(text, codec) except UnicodeDecodeError: return False else: |