diff options
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: |