diff options
Diffstat (limited to 'markdown/extensions/__init__.py')
-rw-r--r-- | markdown/extensions/__init__.py | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/markdown/extensions/__init__.py b/markdown/extensions/__init__.py index 4712e25..2d8d72a 100644 --- a/markdown/extensions/__init__.py +++ b/markdown/extensions/__init__.py @@ -19,7 +19,6 @@ Copyright 2004 Manfred Stienstra (the original version) License: BSD (see LICENSE.md for details). """ -import warnings from ..util import parseBoolValue @@ -70,24 +69,6 @@ class Extension: for key, value in items: self.setConfig(key, value) - def _extendMarkdown(self, *args): - """ Private wrapper around extendMarkdown. """ - md = args[0] - try: - self.extendMarkdown(md) - except TypeError as e: - if "missing 1 required positional argument" in str(e): - # Must be a 2.x extension. Pass in a dumby md_globals. - self.extendMarkdown(md, {}) - warnings.warn( - "The 'md_globals' parameter of '{}.{}.extendMarkdown' is " - "deprecated.".format(self.__class__.__module__, self.__class__.__name__), - category=DeprecationWarning, - stacklevel=2 - ) - else: - raise - def extendMarkdown(self, md): """ Add the various processors and patterns to the Markdown Instance. @@ -98,8 +79,6 @@ class Extension: * md: The Markdown instance. - * md_globals: Global variables in the markdown module namespace. - """ raise NotImplementedError( 'Extension "%s.%s" must define an "extendMarkdown"' |