From 7637fb6c85ae753616046c1d4c9b23b56c8cdf57 Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Sat, 13 Jan 2018 16:13:07 -0500 Subject: Remove deprecated support for Extension args. In the past Markdown used to pass extension config settings to the Extension class via a positional argument named `config`. That was deprecated in 2.6 in favor of using keyword arguments (`**kwargs`). Support has been completely dropped. Only keyword arguments are accepted. --- markdown/extensions/sane_lists.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'markdown/extensions/sane_lists.py') diff --git a/markdown/extensions/sane_lists.py b/markdown/extensions/sane_lists.py index 4b118af..89f929f 100644 --- a/markdown/extensions/sane_lists.py +++ b/markdown/extensions/sane_lists.py @@ -51,5 +51,5 @@ class SaneListExtension(Extension): md.parser.blockprocessors['ulist'] = SaneUListProcessor(md.parser) -def makeExtension(*args, **kwargs): # pragma: no cover - return SaneListExtension(*args, **kwargs) +def makeExtension(**kwargs): # pragma: no cover + return SaneListExtension(**kwargs) -- cgit v1.2.1