Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 82b38f4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions v7/wordpress_compiler/wordpress/default_filters.py
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion v7/wordpress_compiler/wordpress/shortcodes.py
Expand Up @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions v7/wordpress_compiler/wordpress/wordpress.py
Expand Up @@ -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)
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 82b38f4

Please sign in to comment.