From ab8a336d0b12e4e1278b4be416bb952a05aed5e7 Mon Sep 17 00:00:00 2001 From: Mads Jensen Date: Fri, 23 Feb 2018 11:27:12 +0100 Subject: [PATCH] Replaced markdown.Markdown.__init__ with super().__init__. --- src/wiki/core/markdown/__init__.py | 2 +- src/wiki/plugins/links/mdx/djangowikilinks.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wiki/core/markdown/__init__.py b/src/wiki/core/markdown/__init__.py index 4c89c1f1..32c7fca3 100644 --- a/src/wiki/core/markdown/__init__.py +++ b/src/wiki/core/markdown/__init__.py @@ -12,7 +12,7 @@ class ArticleMarkdown(markdown.Markdown): def __init__(self, article, preview=False, user=None, *args, **kwargs): kwargs.update(settings.MARKDOWN_KWARGS) kwargs['extensions'] = self.get_markdown_extensions() - markdown.Markdown.__init__(self, *args, **kwargs) + super().__init__(*args, **kwargs) self.article = article self.preview = preview self.user = user diff --git a/src/wiki/plugins/links/mdx/djangowikilinks.py b/src/wiki/plugins/links/mdx/djangowikilinks.py index a0cef9fb..4c20f5b0 100755 --- a/src/wiki/plugins/links/mdx/djangowikilinks.py +++ b/src/wiki/plugins/links/mdx/djangowikilinks.py @@ -58,7 +58,7 @@ class WikiPathExtension(markdown.Extension): class WikiPath(markdown.inlinepatterns.Pattern): def __init__(self, pattern, config, **kwargs): - markdown.inlinepatterns.Pattern.__init__(self, pattern, **kwargs) + super().__init__(pattern, **kwargs) self.config = config def handleMatch(self, m): -- 2.45.2