changeset 5459:52ff4c59fb05

export csv as text file
author Christof Meerwald <cmeerw@cmeerw.org>
date Tue, 24 Jul 2018 21:25:09 +0100
parents bc2e682e0305
children 87f22a5d65ca
files roundup/admin.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/roundup/admin.py	Mon Jul 23 22:21:52 2018 +0100
+++ b/roundup/admin.py	Tue Jul 24 21:25:09 2018 +0100
@@ -1185,7 +1185,7 @@
                 sys.stdout.write('Exporting %s WITHOUT the files\r\n'%
                     classname)
 
-            f = open(os.path.join(dir, classname+'.csv'), 'wb')
+            f = open(os.path.join(dir, classname+'.csv'), 'w')
             writer = csv.writer(f, colon_separated)
 
             properties = cl.getprops()
@@ -1218,7 +1218,7 @@
             f.close()
 
             # export the journals
-            jf = open(os.path.join(dir, classname+'-journals.csv'), 'wb')
+            jf = open(os.path.join(dir, classname+'-journals.csv'), 'w')
             if self.verbose:
                 sys.stdout.write("\nExporting Journal for %s\n" % classname)
                 sys.stdout.flush()

Roundup Issue Tracker: http://roundup-tracker.org/