Mercurial > p > roundup > code
changeset 5452:b50a4c85c270
fixed incorrect usage of BytesIO
| author | Christof Meerwald <cmeerw@cmeerw.org> |
|---|---|
| date | Sun, 22 Jul 2018 22:38:53 +0100 |
| parents | fe1bd8f12a9f |
| children | 2b4f606d8e72 |
| files | roundup/cgi/actions.py |
| diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/roundup/cgi/actions.py Sat Jul 21 19:39:03 2018 +0100 +++ b/roundup/cgi/actions.py Sun Jul 22 22:38:53 2018 +0100 @@ -1,5 +1,4 @@ import re, cgi, time, random, csv, codecs -from io import BytesIO from roundup import hyperdb, token, date, password from roundup.actions import Action as BaseAction @@ -8,6 +7,7 @@ from roundup.mailgw import uidFromAddress from roundup.exceptions import Reject, RejectRaw from roundup.anypy import urllib_ +from roundup.anypy.strings import StringIO # Also add action to client.py::Client.actions property __all__ = ['Action', 'ShowAction', 'RetireAction', 'RestoreAction', 'SearchAction', @@ -475,7 +475,7 @@ props = ['id'] + props_without_id # do the edit - rows = BytesIO(self.form['rows'].value) + rows = StringIO(self.form['rows'].value) reader = csv.reader(rows) found = {} line = 0
