Arch: survey: py3-fix
This commit is contained in:
@@ -1076,7 +1076,11 @@ class SurveyTaskPanel:
|
||||
if rows:
|
||||
filename = QtGui.QFileDialog.getSaveFileName(QtGui.QApplication.activeWindow(), translate("Arch","Export CSV File"), None, "CSV file (*.csv)");
|
||||
if filename:
|
||||
with open(filename[0].encode("utf8"), 'wb') as csvfile:
|
||||
if sys.version_info.major < 3:
|
||||
mode = 'wb'
|
||||
else:
|
||||
mode = 'w'
|
||||
with open(filename[0].encode("utf8"), mode) as csvfile:
|
||||
csvfile = csv.writer(csvfile,delimiter="\t")
|
||||
suml = 0
|
||||
for i in range(rows):
|
||||
|
||||
Reference in New Issue
Block a user