aboutsummaryrefslogtreecommitdiffstats
path: root/markdown/postprocessors.py
diff options
context:
space:
mode:
authorToshio Kuratomi <toshio@fedoraproject.org>2010-07-05 22:53:31 -0400
committerToshio Kuratomi <toshio@fedoraproject.org>2010-07-05 22:53:31 -0400
commit2eb00c816c6dc31dbbec6c47f8c7ff70ed0785d2 (patch)
tree53024beda5d31143da2a2a0a2e81fa48ca29ba14 /markdown/postprocessors.py
parenta91f766c57d67cebbfc35020f89016ceb4358926 (diff)
downloadmarkdown-2eb00c816c6dc31dbbec6c47f8c7ff70ed0785d2.tar.gz
markdown-2eb00c816c6dc31dbbec6c47f8c7ff70ed0785d2.tar.bz2
markdown-2eb00c816c6dc31dbbec6c47f8c7ff70ed0785d2.zip
Rename misc.py to util.py at the request of upstream
Diffstat (limited to 'markdown/postprocessors.py')
-rw-r--r--markdown/postprocessors.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/markdown/postprocessors.py b/markdown/postprocessors.py
index ceb897f..4ce5324 100644
--- a/markdown/postprocessors.py
+++ b/markdown/postprocessors.py
@@ -9,7 +9,7 @@ processing.
"""
-import misc
+import util
import preprocessors
class Processor:
@@ -52,7 +52,7 @@ class RawHtmlPostprocessor(Postprocessor):
elif str(self.markdown.safeMode).lower() == 'remove':
html = ''
else:
- html = misc.HTML_REMOVED_TEXT
+ html = util.HTML_REMOVED_TEXT
if safe or not self.markdown.safeMode:
text = text.replace("<p>%s</p>" %
(preprocessors.HTML_PLACEHOLDER % i),
@@ -64,7 +64,7 @@ class RawHtmlPostprocessor(Postprocessor):
def unescape(self, html):
""" Unescape any markdown escaped text within inline html. """
for k, v in self.markdown.treeprocessors['inline'].stashed_nodes.items():
- ph = misc.INLINE_PLACEHOLDER % k
+ ph = util.INLINE_PLACEHOLDER % k
html = html.replace(ph, '\%s' % v)
return html
@@ -82,5 +82,5 @@ class AndSubstitutePostprocessor(Postprocessor):
pass
def run(self, text):
- text = text.replace(misc.AMP_SUBSTITUTE, "&")
+ text = text.replace(util.AMP_SUBSTITUTE, "&")
return text