[Arch] minor code cleanup after Py2 check removal

This commit is contained in:
Uwe
2022-08-04 02:26:50 +02:00
parent c49854b47b
commit 846d39ba54

View File

@@ -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):