mirror of
https://github.com/python/cpython.git
synced 2025-08-27 12:16:04 +00:00
Ran 2to3 over scripts directory.
This commit is contained in:
parent
d11ae5d6ec
commit
8efadf5d66
19 changed files with 74 additions and 86 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue