diff options
author | Waylan Limberg <waylan.limberg@icloud.com> | 2018-07-31 13:30:02 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-31 13:30:02 -0400 |
commit | 7dad12c07e3e701da42474696398cb32e5c9979f (patch) | |
tree | 2a2bd4d52e871d64c7e488b55a3440015a9bb4e8 /tests | |
parent | f261ffd065bcfea13d41a9861232155816c5933f (diff) | |
download | markdown-7dad12c07e3e701da42474696398cb32e5c9979f.tar.gz markdown-7dad12c07e3e701da42474696398cb32e5c9979f.tar.bz2 markdown-7dad12c07e3e701da42474696398cb32e5c9979f.zip |
Deprecate md_globals from extension API. (#697)
In the past, most of the config was defined using globals. Today all of
the config is held on the class instance. Therefore, the `md_globals`
parameter is no longer necessary.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_apis.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_apis.py b/tests/test_apis.py index b5c7733..834299b 100644 --- a/tests/test_apis.py +++ b/tests/test_apis.py @@ -682,7 +682,7 @@ class testSerializers(unittest.TestCase): return '<div><p>foo</p></div>' class registerFakeSerializer(markdown.extensions.Extension): - def extendMarkdown(self, md, md_globals): + def extendMarkdown(self, md): md.output_formats['fake'] = fakeSerializer return registerFakeSerializer() @@ -962,7 +962,7 @@ class TestAncestorExclusion(unittest.TestCase): self.config = {} - def extendMarkdown(self, md, md_globals): + def extendMarkdown(self, md): """Modify inline patterns.""" pattern = r'(\+)([^\+]+)\1' |