aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2011-04-25 22:12:24 -0400
committerWaylan Limberg <waylan@gmail.com>2011-04-28 22:13:36 -0400
commit54bb52137a795c8594690744e025558df397ba19 (patch)
treec8860e6aa43cc5fcf0d1b034cb67f71fffaeccef
parentc042da8ab693f981f4e0a2b0bded23a55b3b923f (diff)
downloadmarkdown-54bb52137a795c8594690744e025558df397ba19.tar.gz
markdown-54bb52137a795c8594690744e025558df397ba19.tar.bz2
markdown-54bb52137a795c8594690744e025558df397ba19.zip
Correctly specify minimum version of cElementTree. Fixes #5.
-rw-r--r--markdown/etree_loader.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/markdown/etree_loader.py b/markdown/etree_loader.py
index 60719d8..f605aa2 100644
--- a/markdown/etree_loader.py
+++ b/markdown/etree_loader.py
@@ -19,8 +19,8 @@ def importETree():
except ImportError:
raise ImportError("Failed to import ElementTree")
if etree_in_c:
- if etree_in_c.VERSION < "1.0":
- raise RuntimeError("cElementTree version 1.0 or higher is required.")
+ if etree_in_c.VERSION < "1.0.5":
+ raise RuntimeError("cElementTree version 1.0.5 or higher is required.")
# Third party serializers (including ours) test with non-c Comment
etree_in_c.test_comment = Comment
return etree_in_c