Clean up with 2to3
This commit is contained in:
parent
f85968fad3
commit
ebb2fb6c1c
6 changed files with 153 additions and 153 deletions
|
|
@ -56,7 +56,7 @@ def is_iter(obj):
|
|||
what we want to do with a string.
|
||||
|
||||
"""
|
||||
if isinstance(obj, (str, bytes, )):
|
||||
if isinstance(obj, (str, bytes )):
|
||||
return False
|
||||
|
||||
try:
|
||||
|
|
@ -800,7 +800,7 @@ def to_str(obj, encoding='utf-8', force_string=False):
|
|||
conversion of objects to strings.
|
||||
|
||||
"""
|
||||
if isinstance(obj, (str, bytes, )):
|
||||
if isinstance(obj, (str, bytes )):
|
||||
return obj
|
||||
|
||||
if force_string:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue