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
|
|
@ -128,7 +128,7 @@ prototype, override its name with an empty dict.
|
|||
|
||||
|
||||
"""
|
||||
from __future__ import print_function
|
||||
|
||||
|
||||
import copy
|
||||
import hashlib
|
||||
|
|
@ -447,7 +447,7 @@ def batch_update_objects_with_prototype(prototype, diff=None, objects=None):
|
|||
"""
|
||||
prototype = protlib.homogenize_prototype(prototype)
|
||||
|
||||
if isinstance(prototype, basestring):
|
||||
if isinstance(prototype, str):
|
||||
new_prototype = protlib.search_prototype(prototype)
|
||||
else:
|
||||
new_prototype = prototype
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue