Remove basestring mentions remnants of 2.7
This commit is contained in:
parent
e54b87b6fd
commit
58116ff900
10 changed files with 29 additions and 29 deletions
|
|
@ -571,7 +571,7 @@ class DefaultObject(with_metaclass(TypeclassBase, ObjectDB)):
|
|||
logger.log_trace()
|
||||
|
||||
if text is not None:
|
||||
if not (isinstance(text, basestring) or isinstance(text, tuple)):
|
||||
if not (isinstance(text, str) or isinstance(text, tuple)):
|
||||
# sanitize text before sending across the wire
|
||||
try:
|
||||
text = to_str(text, force_string=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue