diff options
author | Yuri Takhteyev <yuri@freewisdom.org> | 2008-12-04 10:25:33 -0800 |
---|---|---|
committer | Yuri Takhteyev <yuri@freewisdom.org> | 2008-12-04 10:25:33 -0800 |
commit | 50783a6600c21801edee16b2f523292e82cbcf9f (patch) | |
tree | 4f1b9b810b2c2860a3b9fbf4f9fa878cfc573507 /markdown/treeprocessors.py | |
parent | d952587e33fcebb8f3807a863f2bdd50b86b5b23 (diff) | |
download | markdown-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.py | 2 |
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: |