changeset 106:31de4c0b06ee v1.4.6

fixed python2.4 compat
author catherine@localhost
date Mon, 09 Jun 2008 12:35:13 -0400
parents 1e69f3a26216
children 3b12b99b5b34
files sqlpyPlus.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sqlpyPlus.py	Mon Jun 09 12:34:06 2008 -0400
+++ b/sqlpyPlus.py	Mon Jun 09 12:35:13 2008 -0400
@@ -459,7 +459,7 @@
             if outformat in ('\\s', '\\c'):
                 result.append(','.join('"%s"' % colname for colname in self.colnames))
             for row in self.rows:
-                result.append(','.join('"%s"' % ('' if itm is None else itm) for itm in row))
+                result.append(','.join('"%s"' % self.str_or_empty(itm) for itm in row))
             result = '\n'.join(result)
         elif outformat == '\\h':
             result = self.output_as_html_table()