File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
pelican/plugins/i18n_subsites Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 1010import os
1111import posixpath
1212
13- import six
14-
1513try :
1614 from collections .abc import OrderedDict
1715except ImportError :
1816 from collections import OrderedDict
1917from contextlib import contextmanager
2018import gettext
2119import locale
22-
23- from six .moves .urllib .parse import urlparse
20+ from urllib .parse import urlparse
2421
2522from pelican import signals
2623from pelican .generators import ArticlesGenerator , PagesGenerator
@@ -405,7 +402,7 @@ def update_generators():
405402def get_pelican_cls (settings ):
406403 """Get the Pelican class requested in settings."""
407404 cls = settings ["PELICAN_CLASS" ]
408- if isinstance (cls , six . string_types ):
405+ if isinstance (cls , str ):
409406 module , cls_name = cls .rsplit ("." , 1 )
410407 module = __import__ (module )
411408 cls = getattr (module , cls_name )
You can’t perform that action at this time.
0 commit comments