From 01fb5ddbdf42dd188159579ffeefa3b459cc6b08 Mon Sep 17 00:00:00 2001 From: Frederik Berlaen Date: Thu, 29 Aug 2019 10:24:34 +0200 Subject: [PATCH] replace basestring for str --- Lib/defconAppKit/controls/fontInfoView.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Lib/defconAppKit/controls/fontInfoView.py b/Lib/defconAppKit/controls/fontInfoView.py index b41fe17..66df975 100644 --- a/Lib/defconAppKit/controls/fontInfoView.py +++ b/Lib/defconAppKit/controls/fontInfoView.py @@ -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) @@ -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]) @@ -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)