[Arch] minor code cleanup after Py2 check removal
This commit is contained in:
@@ -1103,8 +1103,7 @@ class SurveyTaskPanel:
|
||||
if rows:
|
||||
filename = QtGui.QFileDialog.getSaveFileName(QtGui.QApplication.activeWindow(), translate("Arch","Export CSV File"), None, "CSV file (*.csv)");
|
||||
if filename:
|
||||
mode = 'w'
|
||||
with open(filename[0].encode("utf8"), mode) as csvfile:
|
||||
with open(filename[0].encode("utf8"), "w") as csvfile:
|
||||
csvfile = csv.writer(csvfile,delimiter="\t")
|
||||
suml = 0
|
||||
for i in range(rows):
|
||||
|
||||
Reference in New Issue
Block a user