diff options
Diffstat (limited to 'markdown/extensions/footnotes.py')
-rw-r--r-- | markdown/extensions/footnotes.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/markdown/extensions/footnotes.py b/markdown/extensions/footnotes.py index 6ac92ab..d16cf84 100644 --- a/markdown/extensions/footnotes.py +++ b/markdown/extensions/footnotes.py @@ -35,7 +35,7 @@ RE_REF_ID = re.compile(r'(fnref)(\d+)') class FootnoteExtension(Extension): """ Footnote Extension. """ - def __init__(self, *args, **kwargs): + def __init__(self, **kwargs): """ Setup configs. """ self.config = { @@ -56,7 +56,7 @@ class FootnoteExtension(Extension): "of the backlink. %d will be replaced by the " "footnote number."] } - super(FootnoteExtension, self).__init__(*args, **kwargs) + super(FootnoteExtension, self).__init__(**kwargs) # In multiple invocations, emit links that don't get tangled. self.unique_prefix = 0 @@ -426,6 +426,6 @@ class FootnotePostprocessor(Postprocessor): return text.replace(NBSP_PLACEHOLDER, " ") -def makeExtension(*args, **kwargs): # pragma: no cover +def makeExtension(**kwargs): # pragma: no cover """ Return an instance of the FootnoteExtension """ - return FootnoteExtension(*args, **kwargs) + return FootnoteExtension(**kwargs) |