forked from github/pelican
Checking for basestring isinstance, not (str, unicode)
This commit is contained in:
parent
58d98e918f
commit
19cfe00397
1 changed files with 1 additions and 1 deletions
|
|
@ -184,7 +184,7 @@ class URLWrapper(object):
|
|||
def _from_settings(self, key):
|
||||
setting = "%s_%s" % (self.__class__.__name__.upper(), key)
|
||||
value = self.settings[setting]
|
||||
if not isinstance(value, (str, unicode)):
|
||||
if not isinstance(value, basestring):
|
||||
logger.warning(u'%s is set to %s' % (setting, value))
|
||||
return value
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue