diff options
author | Toshio Kuratomi <toshio@fedoraproject.org> | 2010-07-05 12:19:46 -0400 |
---|---|---|
committer | Toshio Kuratomi <toshio@fedoraproject.org> | 2010-07-05 12:19:46 -0400 |
commit | cf1e33c216b1ea5ce18f660025744d9f8b66fb7c (patch) | |
tree | bf30dada8c77312054b84d19b3d36be7dc7c50d9 | |
parent | d833be68cb7279241996e0f3e9ae3d1162308145 (diff) | |
download | markdown-cf1e33c216b1ea5ce18f660025744d9f8b66fb7c.tar.gz markdown-cf1e33c216b1ea5ce18f660025744d9f8b66fb7c.tar.bz2 markdown-cf1e33c216b1ea5ce18f660025744d9f8b66fb7c.zip |
Fix for undefined variables that need to be imported
-rw-r--r-- | markdown/blockprocessors.py | 1 | ||||
-rw-r--r-- | markdown/extensions/def_list.py | 2 | ||||
-rw-r--r-- | markdown/extensions/headerid.py | 2 | ||||
-rw-r--r-- | markdown/treeprocessors.py | 2 |
4 files changed, 4 insertions, 3 deletions
diff --git a/markdown/blockprocessors.py b/markdown/blockprocessors.py index 7e6860f..42693c6 100644 --- a/markdown/blockprocessors.py +++ b/markdown/blockprocessors.py @@ -14,6 +14,7 @@ as they need to alter how markdown blocks are parsed. import re import markdown +from markdown import CRITICAL, message class BlockProcessor: """ Base class for block processors. diff --git a/markdown/extensions/def_list.py b/markdown/extensions/def_list.py index bd04b03..7a8d9e7 100644 --- a/markdown/extensions/def_list.py +++ b/markdown/extensions/def_list.py @@ -84,7 +84,7 @@ class DefListIndentProcessor(markdown.blockprocessors.ListIndentProcessor): ITEM_TYPES = ['dd'] LIST_TYPES = ['dl'] - def create_item(parent, block): + def create_item(self, parent, block): """ Create a new dd and parse the block with it as the parent. """ dd = markdown.etree.SubElement(parent, 'dd') self.parser.parseBlocks(dd, [block]) diff --git a/markdown/extensions/headerid.py b/markdown/extensions/headerid.py index f70a7a9..6806818 100644 --- a/markdown/extensions/headerid.py +++ b/markdown/extensions/headerid.py @@ -66,7 +66,7 @@ Dependencies: """ import markdown -from markdown import etree +from markdown import CRITICAL, etree, message import re from string import ascii_lowercase, digits, punctuation diff --git a/markdown/treeprocessors.py b/markdown/treeprocessors.py index ca3b02b..97073f4 100644 --- a/markdown/treeprocessors.py +++ b/markdown/treeprocessors.py @@ -185,7 +185,7 @@ class InlineProcessor(Treeprocessor): result.append(node) else: # wrong placeholder - end = index + len(prefix) + end = index + len(self.__placeholder_prefix) linkText(data[strartIndex:end]) strartIndex = end else: |