aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2008-11-20 20:22:24 -0500
committerWaylan Limberg <waylan@gmail.com>2008-11-20 20:22:24 -0500
commit727e5fe34fb88f602f7c93ab9b0a78f7878ebdf1 (patch)
treea1c9973754bd28bc84b03a9a7da396d9a6744c64
parentd624305f46a334c941344e466460eef551da0f16 (diff)
downloadmarkdown-727e5fe34fb88f602f7c93ab9b0a78f7878ebdf1.tar.gz
markdown-727e5fe34fb88f602f7c93ab9b0a78f7878ebdf1.tar.bz2
markdown-727e5fe34fb88f602f7c93ab9b0a78f7878ebdf1.zip
Updated abbr extension for new refactor.
-rw-r--r--markdown/extensions/abbr.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/markdown/extensions/abbr.py b/markdown/extensions/abbr.py
index 551e4f5..783220e 100644
--- a/markdown/extensions/abbr.py
+++ b/markdown/extensions/abbr.py
@@ -37,7 +37,7 @@ class AbbrExtension(markdown.Extension):
md.preprocessors.add('abbr', AbbrPreprocessor(md), '<reference')
-class AbbrPreprocessor(markdown.Preprocessor):
+class AbbrPreprocessor(markdown.preprocessors.Preprocessor):
""" Abbreviation Preprocessor - parse text for abbr references. """
def run(self, lines):
@@ -74,11 +74,11 @@ class AbbrPreprocessor(markdown.Preprocessor):
return r'(?P<abbr>\b%s\b)' % (r''.join(chars))
-class AbbrPattern(markdown.Pattern):
+class AbbrPattern(markdown.inlinepatterns.Pattern):
""" Abbreviation inline pattern. """
def __init__(self, pattern, title):
- markdown.Pattern.__init__(self, pattern)
+ markdown.inlinepatterns.Pattern.__init__(self, pattern)
self.title = title
def handleMatch(self, m):