changeset 14:fb9cc7c43c22 draft

Uploaded v0.0.20 preview 5, cElementTree fallback
author peterjc
date Thu, 02 May 2013 11:21:54 -0400
parents 462d362d0b8b
children c19e1150779d
files tools/ncbi_blast_plus/blastxml_to_tabular.py tools/ncbi_blast_plus/ncbi_blast_plus.txt
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tools/ncbi_blast_plus/blastxml_to_tabular.py	Mon Apr 29 12:24:35 2013 -0400
+++ b/tools/ncbi_blast_plus/blastxml_to_tabular.py	Thu May 02 11:21:54 2013 -0400
@@ -63,11 +63,14 @@
 import re
 
 if "-v" in sys.argv or "--version" in sys.argv:
-    print "v0.0.11"
+    print "v0.0.12"
     sys.exit(0)
 
 if sys.version_info[:2] >= ( 2, 5 ):
-    import xml.etree.cElementTree as ElementTree
+    try:
+        from xml.etree import cElementTree as ElementTree
+    except ImportError:
+        from xml.etree import ElementTree as ElementTree
 else:
     from galaxy import eggs
     import pkg_resources; pkg_resources.require( "elementtree" )
--- a/tools/ncbi_blast_plus/ncbi_blast_plus.txt	Mon Apr 29 12:24:35 2013 -0400
+++ b/tools/ncbi_blast_plus/ncbi_blast_plus.txt	Thu May 02 11:21:54 2013 -0400
@@ -104,6 +104,7 @@
 v0.0.20 - Added unit tests for BLASTN and TBLASTX.
         - Automatic installation via the Tool Shed now uses the NCBI provided
           precompiled binaries for 64bit Linux, rather than compiling locally.
+        - Fallback on ElementTree if cElementTree missing in XML to tabular.
 
 
 Developers