# HG changeset patch # User catherine@localhost # Date 1213029313 14400 # Node ID 31de4c0b06eef232321bf5cc5677b52eb965232b # Parent 1e69f3a26216cb33beb16d7a9d81891bad34b4d4 fixed python2.4 compat diff -r 1e69f3a26216 -r 31de4c0b06ee sqlpyPlus.py --- 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()