aboutsummaryrefslogtreecommitdiffstats
path: root/markdown/blockprocessors.py
diff options
context:
space:
mode:
authorWaylan Limberg <waylan.limberg@icloud.com>2015-01-31 12:14:38 -0500
committerWaylan Limberg <waylan.limberg@icloud.com>2015-01-31 12:14:38 -0500
commit82ad7a9c155a7b9813a48b10479d1b742690deaa (patch)
tree00382b75b4fa95c86ccfd3e64a1d0649e18c36c1 /markdown/blockprocessors.py
parent17123eaf6eb72a60bf6c5b8a1ad0457187387879 (diff)
downloadmarkdown-82ad7a9c155a7b9813a48b10479d1b742690deaa.tar.gz
markdown-82ad7a9c155a7b9813a48b10479d1b742690deaa.tar.bz2
markdown-82ad7a9c155a7b9813a48b10479d1b742690deaa.zip
Use newer ElementTree API to avoid future breakage.
Diffstat (limited to 'markdown/blockprocessors.py')
-rw-r--r--markdown/blockprocessors.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/markdown/blockprocessors.py b/markdown/blockprocessors.py
index 9c137df..a516fb4 100644
--- a/markdown/blockprocessors.py
+++ b/markdown/blockprocessors.py
@@ -148,7 +148,7 @@ class ListIndentProcessor(BlockProcessor):
return block.startswith(' '*self.tab_length) and \
not self.parser.state.isstate('detabbed') and \
(parent.tag in self.ITEM_TYPES or
- (len(parent) and parent[-1] and
+ (len(parent) and parent[-1] is not None and
(parent[-1].tag in self.LIST_TYPES)))
def run(self, parent, blocks):