Code

- Fix StringIO issue2550713: io.StringIO in newer versions of python
[roundup.git] / roundup / cgi / actions.py
index d48fb595eb75514bd47c74a4bd8abbbfefec8466..86bd4f1f112a5e2e82eb936ad6d0a185da6033bd 100755 (executable)
@@ -297,7 +297,7 @@ class EditCSVAction(Action):
         props = ['id'] + props_without_id
 
         # do the edit
-        rows = io_.StringIO(self.form['rows'].value)
+        rows = io_.BytesIO(self.form['rows'].value)
         reader = csv.reader(rows)
         found = {}
         line = 0