Repository 'query_tabular'
hg clone https://toolshed.g2.bx.psu.edu/repos/jjohnson/query_tabular

Changeset 10:e84d1c3bf4fe (2017-03-02)
Previous changeset 9:0ed75ed20c7e (2017-03-02) Next changeset 11:fd16243931d6 (2017-05-12)
Commit message:
Uploaded
modified:
query_tabular.py
b
diff -r 0ed75ed20c7e -r e84d1c3bf4fe query_tabular.py
--- a/query_tabular.py Thu Mar 02 08:26:54 2017 -0500
+++ b/query_tabular.py Thu Mar 02 13:43:25 2017 -0500
[
@@ -362,7 +362,7 @@
             # yield [col[0] for col in cur.description]
         for i, row in enumerate(results):
             # yield [val for val in row]
-            outputFile.write("%s\n" % '\t'.join([str(val) for val in row]))
+            outputFile.write("%s\n" % '\t'.join([str(val) if val is not None else '' for val in row]))
     except Exception, exc:
         print >> sys.stderr, "Error: %s" % exc
         exit(1)