Skip to content

Commit 01fb5dd

Browse files
committed
replace basestring for str
1 parent 0738014 commit 01fb5dd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Lib/defconAppKit/controls/fontInfoView.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def set(self, value):
180180
self._previousString = value
181181
if value == "":
182182
value = None
183-
if isinstance(value, basestring):
183+
if isinstance(value, str):
184184
value = self._numberClass(value)
185185
if value is not None:
186186
value = self._numberToString(value)
@@ -198,7 +198,7 @@ def initWithMaxValuesCount_requiresEvenCount_(self, maxValuesCount, requiresEven
198198
def stringForObjectValue_(self, obj):
199199
if obj is None or isinstance(obj, NSNull):
200200
return ""
201-
if isinstance(obj, basestring):
201+
if isinstance(obj, str):
202202
return obj
203203
else:
204204
return " ".join([str(i) for i in obj])
@@ -3737,7 +3737,7 @@ def _updatePlaceholders(self):
37373737
value = getAttrWithFallback(self._font.info, attribute)
37383738
if value is None:
37393739
value = ""
3740-
if not isinstance(value, basestring):
3740+
if not isinstance(value, str):
37413741
value = str(value)
37423742
control.setPlaceholder(value)
37433743

0 commit comments

Comments
 (0)