Mercurial > repos > jjohnson > query_tabular
changeset 10:e84d1c3bf4fe draft
Uploaded
author | jjohnson |
---|---|
date | Thu, 02 Mar 2017 13:43:25 -0500 |
parents | 0ed75ed20c7e |
children | fd16243931d6 |
files | query_tabular.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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)