Skip to content

Commit ca206d1

Browse files
committed
export csv as text file
1 parent ec9accb commit ca206d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roundup/admin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,7 +1185,7 @@ class colon_separated(csv.excel):
11851185
sys.stdout.write('Exporting %s WITHOUT the files\r\n'%
11861186
classname)
11871187

1188-
f = open(os.path.join(dir, classname+'.csv'), 'wb')
1188+
f = open(os.path.join(dir, classname+'.csv'), 'w')
11891189
writer = csv.writer(f, colon_separated)
11901190

11911191
properties = cl.getprops()
@@ -1218,7 +1218,7 @@ class colon_separated(csv.excel):
12181218
f.close()
12191219

12201220
# export the journals
1221-
jf = open(os.path.join(dir, classname+'-journals.csv'), 'wb')
1221+
jf = open(os.path.join(dir, classname+'-journals.csv'), 'w')
12221222
if self.verbose:
12231223
sys.stdout.write("\nExporting Journal for %s\n" % classname)
12241224
sys.stdout.flush()

0 commit comments

Comments
 (0)