1
0
Fork 0
forked from github/pelican

Checking for basestring isinstance, not (str, unicode)

This commit is contained in:
Pavel Puchkin 2012-04-29 14:45:34 +11:00
commit 19cfe00397

View file

@ -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: