Skip to content
Permalink
Browse files

Fix #97 -- fix py3-only syntax in wordpress (cc @felixfontein)

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Aug 3, 2015
1 parent 606c1d7 commit 82b38f475d4fea2c85b2df03c31c68be208e6437
@@ -30,9 +30,9 @@ def _x(default, lookup):
return default


class DefaultWordpressFilters:
class DefaultWordpressFilters(object):
def __init__(self, shortcodes):
super().__init__()
super(DefaultWordpressFilters, self).__init__()
self.wp_cockneyreplace = None
self.__wptexturize_setup()
self.__convert_chars_setup()
@@ -43,7 +43,7 @@ def shortcode_atts(pairs, atts):
return out


class ShortCodes:
class ShortCodes(object):
def __init__(self):
self._shortcode_tags = {}
self._create_shortcode_regex()
@@ -114,7 +114,7 @@ class CompileWordpress(PageCompiler):
site = None

def __init__(self):
super().__init__()
super(CompileWordpress, self).__init__()
self.__filters = dict()
self.__shortcodes = shortcodes.ShortCodes()
self.__default_wordpress_filters = default_filters.DefaultWordpressFilters(self.__shortcodes)
@@ -179,7 +179,7 @@ def do_shortcode(self, data):
return self.__shortcodes.do_shortcode(data)

def set_site(self, site):
super().set_site(site)
super(CompileWordpress, self).set_site(site)
self._register_plugins()

def __formatData(self, data, context, source=None):

0 comments on commit 82b38f4

Please sign in to comment.
You can’t perform that action at this time.