summaryrefslogtreecommitdiffstats
path: root/Tools/scripts/findnocoding.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-05-16 15:23:30 (GMT)
committerGeorg Brandl <georg@python.org>2008-05-16 15:23:30 (GMT)
commit8efadf5d6613e76dfc5476f58adb9a2135173129 (patch)
tree93ea7c3914c65801cd3844aa0ea1304676076940 /Tools/scripts/findnocoding.py
parentd11ae5d6ecda1d233af651a360c9f9140992f05d (diff)
downloadcpython-8efadf5d6613e76dfc5476f58adb9a2135173129.zip
cpython-8efadf5d6613e76dfc5476f58adb9a2135173129.tar.gz
cpython-8efadf5d6613e76dfc5476f58adb9a2135173129.tar.bz2
Ran 2to3 over scripts directory.
Diffstat (limited to 'Tools/scripts/findnocoding.py')
-rwxr-xr-xTools/scripts/findnocoding.py2
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: