mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
use six.string_types for python 3 compat
This commit is contained in:
parent
e07b39dfcb
commit
0caa101ec7
1 changed files with 2 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals, print_function
|
||||
import six
|
||||
|
||||
# From django.core.paginator
|
||||
import functools
|
||||
|
|
@ -110,7 +111,7 @@ class Page(object):
|
|||
logic."""
|
||||
setting = "%s_%s" % ('PAGINATION', key)
|
||||
value = self.settings[setting]
|
||||
if not isinstance(value, basestring):
|
||||
if not isinstance(value, six.string_types):
|
||||
logger.warning(u'%s is set to %s' % (setting, value))
|
||||
return value
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue