aboutsummaryrefslogtreecommitdiffstats
path: root/markdown/treeprocessors.py
diff options
context:
space:
mode:
authorYuri Takhteyev <yuri@freewisdom.org>2008-12-04 10:25:33 -0800
committerYuri Takhteyev <yuri@freewisdom.org>2008-12-04 10:25:33 -0800
commit50783a6600c21801edee16b2f523292e82cbcf9f (patch)
tree4f1b9b810b2c2860a3b9fbf4f9fa878cfc573507 /markdown/treeprocessors.py
parentd952587e33fcebb8f3807a863f2bdd50b86b5b23 (diff)
downloadmarkdown-50783a6600c21801edee16b2f523292e82cbcf9f.tar.gz
markdown-50783a6600c21801edee16b2f523292e82cbcf9f.tar.bz2
markdown-50783a6600c21801edee16b2f523292e82cbcf9f.zip
Getting rid of has_key for compatibility with python3k.
Diffstat (limited to 'markdown/treeprocessors.py')
-rw-r--r--markdown/treeprocessors.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/markdown/treeprocessors.py b/markdown/treeprocessors.py
index 0ea0de2..1dc612a 100644
--- a/markdown/treeprocessors.py
+++ b/markdown/treeprocessors.py
@@ -161,7 +161,7 @@ class InlineProcessor(Treeprocessor):
if index != -1:
id, phEndIndex = self.__findPlaceholder(data, index)
- if self.stashed_nodes.has_key(id):
+ if id in self.stashed_nodes:
node = self.stashed_nodes.get(id)
if index > 0: