diff options
author | Waylan Limberg <waylan@gmail.com> | 2013-02-27 09:11:49 -0500 |
---|---|---|
committer | Waylan Limberg <waylan@gmail.com> | 2013-02-27 09:11:49 -0500 |
commit | 794bffb4f168f8429b8d7cb8055af02273ddc547 (patch) | |
tree | ca047996917cf96556a5d5f88e32626cf28f2afd /markdown/extensions/__init__.py | |
parent | e7259d5024c932707371f4e6ea8cbb3a8fe2d214 (diff) | |
parent | 579288c5eb684dd09d1ef298929a566f40151205 (diff) | |
download | markdown-794bffb4f168f8429b8d7cb8055af02273ddc547.tar.gz markdown-794bffb4f168f8429b8d7cb8055af02273ddc547.tar.bz2 markdown-794bffb4f168f8429b8d7cb8055af02273ddc547.zip |
Merge branch '2and3'
Diffstat (limited to 'markdown/extensions/__init__.py')
-rw-r--r-- | markdown/extensions/__init__.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/markdown/extensions/__init__.py b/markdown/extensions/__init__.py index 0222c91..960d8f9 100644 --- a/markdown/extensions/__init__.py +++ b/markdown/extensions/__init__.py @@ -1,9 +1,10 @@ +from __future__ import unicode_literals """ Extensions ----------------------------------------------------------------------------- """ -class Extension: +class Extension(object): """ Base class for extensions to subclass. """ def __init__(self, configs = {}): """Create an instance of an Extention. @@ -46,6 +47,6 @@ class Extension: * md_globals: Global variables in the markdown module namespace. """ - raise NotImplementedError, 'Extension "%s.%s" must define an "extendMarkdown"' \ - 'method.' % (self.__class__.__module__, self.__class__.__name__) + raise NotImplementedError('Extension "%s.%s" must define an "extendMarkdown"' \ + 'method.' % (self.__class__.__module__, self.__class__.__name__)) |