From 1ffc7b96e91285af8c982006868cc5e221dc7dee Mon Sep 17 00:00:00 2001 From: looooo Date: Sun, 1 Jul 2018 21:00:14 +0200 Subject: [PATCH] py3: basestring is not defined --- proxy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy.py b/proxy.py index 7c0ac84..2222ae3 100644 --- a/proxy.py +++ b/proxy.py @@ -61,7 +61,7 @@ class ProxyType(type): @classmethod def getType(mcs,tp): - if isinstance(tp,basestring): + if isinstance(tp,str): return mcs.getInfo().TypeNameMap[tp] if not isinstance(tp,int): tp = mcs.getTypeID(tp)