Skip to content

Commit

Permalink
fix for python 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
stonebig committed Sep 10, 2014
1 parent 0af0278 commit 8702d02
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ Changelog
=========


2014-09-10b : v0.8.7.4 '.Import this !'
---------------------------------------

* compatibility fix for python 2.7


2014-09-10a : v0.8.7.3 '.Import this !'
---------------------------------------

Expand Down
6 changes: 3 additions & 3 deletions sqlite_bro.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ class App:
"""the GUI graphic application"""
def __init__(self):
"""create a tkk graphic interface with a main window tk_win"""
self.__version__ = '0.8.7.3'
self._title = "2014-09-10a : '.Import this !"
self.__version__ = '0.8.7.4'
self._title = "2014-09-10b : '.Import this !"
self.conn = None # Baresql database object
self.database_file = ""
self.tk_win = Tk()
Expand Down Expand Up @@ -1526,7 +1526,7 @@ def export_writer(self, sql, csv_file, header=True,
quotechar='"', quoting=csv.QUOTE_MINIMAL)
else: # python2.7 (minimal)
fout = io.open(csv_file, 'wb')
writer = csv.writer(fout, delimiter=delimiter,
writer = csv.writer(fout, delimiter=str(delimiter),
quotechar=str('"'), quoting=csv.QUOTE_MINIMAL)
if header:
writer.writerow([i[0] for i in cursor.description]) # heading row
Expand Down

0 comments on commit 8702d02

Please sign in to comment.