mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Merge pull request #329 from neoascetic/_save_as_behavior
Checking for basestring isinstance, not (str, unicode)
This commit is contained in:
commit
3f9c87099d
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