aboutsummaryrefslogtreecommitdiffstats
path: root/markdown/__init__.py
diff options
context:
space:
mode:
authorWaylan Limberg <waylan.limberg@icloud.com>2015-02-02 17:59:19 -0500
committerWaylan Limberg <waylan.limberg@icloud.com>2015-02-02 17:59:19 -0500
commit044c0f2f61c2e289c1e231260a97b770794c8a2d (patch)
tree3ef05cb2318966039202347706147f381667b893 /markdown/__init__.py
parent82ad7a9c155a7b9813a48b10479d1b742690deaa (diff)
downloadmarkdown-044c0f2f61c2e289c1e231260a97b770794c8a2d.tar.gz
markdown-044c0f2f61c2e289c1e231260a97b770794c8a2d.tar.bz2
markdown-044c0f2f61c2e289c1e231260a97b770794c8a2d.zip
Fix back-compat import of ext names without dots.
`makeExtension` is the module level function defined in an extension, not `extendMarkdown`, which is the method you override on the Extension class. Do'h. Thanks for catching this @mitya57.
Diffstat (limited to 'markdown/__init__.py')
-rw-r--r--markdown/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/markdown/__init__.py b/markdown/__init__.py
index fc51288..9aa3432 100644
--- a/markdown/__init__.py
+++ b/markdown/__init__.py
@@ -234,7 +234,7 @@ class Markdown(object):
)
# For backward compat (until deprecation)
# check that this is an extension.
- if ('.' not in ext_name and not (hasattr(module, 'extendMarkdown')
+ if ('.' not in ext_name and not (hasattr(module, 'makeExtension')
or (class_name and hasattr(module, class_name)))):
# We have a name conflict
# eg: extensions=['tables'] and PyTables is installed