Skip to content

Commit

Permalink
replace basestring for str
Browse files Browse the repository at this point in the history
  • Loading branch information
typemytype committed Aug 29, 2019
1 parent 0738014 commit 01fb5dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Lib/defconAppKit/controls/fontInfoView.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def set(self, value):
self._previousString = value
if value == "":
value = None
if isinstance(value, basestring):
if isinstance(value, str):
value = self._numberClass(value)
if value is not None:
value = self._numberToString(value)
Expand All @@ -198,7 +198,7 @@ def initWithMaxValuesCount_requiresEvenCount_(self, maxValuesCount, requiresEven
def stringForObjectValue_(self, obj):
if obj is None or isinstance(obj, NSNull):
return ""
if isinstance(obj, basestring):
if isinstance(obj, str):
return obj
else:
return " ".join([str(i) for i in obj])
Expand Down Expand Up @@ -3737,7 +3737,7 @@ def _updatePlaceholders(self):
value = getAttrWithFallback(self._font.info, attribute)
if value is None:
value = ""
if not isinstance(value, basestring):
if not isinstance(value, str):
value = str(value)
control.setPlaceholder(value)

Expand Down

0 comments on commit 01fb5dd

Please sign in to comment.