diff options
author | Waylan Limberg <waylan@gmail.com> | 2014-01-08 22:37:22 -0500 |
---|---|---|
committer | Waylan Limberg <waylan@gmail.com> | 2014-01-08 22:37:22 -0500 |
commit | 88f75ee760bb92e51fc64c3805a73b8be896e641 (patch) | |
tree | a66a466a31e6153cab0871d7047dbbf675e7ea4e /markdown/__init__.py | |
parent | 809195fb900c8e8bd3ff65a2e69de78075224096 (diff) | |
download | markdown-88f75ee760bb92e51fc64c3805a73b8be896e641.tar.gz markdown-88f75ee760bb92e51fc64c3805a73b8be896e641.tar.bz2 markdown-88f75ee760bb92e51fc64c3805a73b8be896e641.zip |
Address various depreciated APIs in Python
This mostly revolves around old APIs for ElementTree, but includes a few
others as well. Fixes #254. Thanks for the report.
Diffstat (limited to 'markdown/__init__.py')
-rw-r--r-- | markdown/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/markdown/__init__.py b/markdown/__init__.py index 0219dc3..4943388 100644 --- a/markdown/__init__.py +++ b/markdown/__init__.py @@ -293,7 +293,7 @@ class Markdown(object): # Run the tree-processors for treeprocessor in self.treeprocessors.values(): newRoot = treeprocessor.run(root) - if newRoot: + if newRoot is not None: root = newRoot # Serialize _properly_. Strip top-level tags. |