py3: basestring is not defined
This commit is contained in:
parent
7fb8cf48ad
commit
1ffc7b96e9
2
proxy.py
2
proxy.py
|
@ -61,7 +61,7 @@ class ProxyType(type):
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def getType(mcs,tp):
|
def getType(mcs,tp):
|
||||||
if isinstance(tp,basestring):
|
if isinstance(tp,str):
|
||||||
return mcs.getInfo().TypeNameMap[tp]
|
return mcs.getInfo().TypeNameMap[tp]
|
||||||
if not isinstance(tp,int):
|
if not isinstance(tp,int):
|
||||||
tp = mcs.getTypeID(tp)
|
tp = mcs.getTypeID(tp)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user