aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2008-11-20 19:58:37 -0500
committerWaylan Limberg <waylan@gmail.com>2008-11-20 19:58:37 -0500
commit478f63d2a51f4bd1712439e610f241bf501d0576 (patch)
treede5db1d7e6b4fc3f1beffd0a5b6bb5cf23ac463d
parent34666742ee4b5cb03f9a9f6297d5784f553d5346 (diff)
downloadmarkdown-478f63d2a51f4bd1712439e610f241bf501d0576.tar.gz
markdown-478f63d2a51f4bd1712439e610f241bf501d0576.tar.bz2
markdown-478f63d2a51f4bd1712439e610f241bf501d0576.zip
Updated tables extension for refactor.
-rw-r--r--markdown/extensions/tables.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/markdown/extensions/tables.py b/markdown/extensions/tables.py
index 0e5cd96..8eaa2d3 100644
--- a/markdown/extensions/tables.py
+++ b/markdown/extensions/tables.py
@@ -7,9 +7,9 @@ Table extension for Python-Markdown
import markdown
from markdown import etree
-class TablePattern(markdown.Pattern) :
+class TablePattern(markdown.inlinepatterns.Pattern):
def __init__ (self, md):
- markdown.Pattern.__init__(self, r'(^|\n)\|([^\n]*)\|')
+ markdown.inlinepatterns.Pattern.__init__(self, r'(^|\n)\|([^\n]*)\|')
self.md = md
def handleMatch(self, m):
@@ -38,7 +38,7 @@ class TablePattern(markdown.Pattern) :
return tr
-class TableTreeprocessor(markdown.Treeprocessor):
+class TableTreeprocessor(markdown.treeprocessors.Treeprocessor):
def _findElement(self, element, name):
result = []