Skip to content

Commit b1e3669

Browse files
committed
fixed incorrect usage of BytesIO
1 parent 4eec8d4 commit b1e3669

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roundup/cgi/actions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import re, cgi, time, random, csv, codecs
2-
from io import BytesIO
32

43
from roundup import hyperdb, token, date, password
54
from roundup.actions import Action as BaseAction
@@ -8,6 +7,7 @@
87
from roundup.mailgw import uidFromAddress
98
from roundup.exceptions import Reject, RejectRaw
109
from roundup.anypy import urllib_
10+
from roundup.anypy.strings import StringIO
1111

1212
# Also add action to client.py::Client.actions property
1313
__all__ = ['Action', 'ShowAction', 'RetireAction', 'RestoreAction', 'SearchAction',
@@ -475,7 +475,7 @@ def handle(self):
475475
props = ['id'] + props_without_id
476476

477477
# do the edit
478-
rows = BytesIO(self.form['rows'].value)
478+
rows = StringIO(self.form['rows'].value)
479479
reader = csv.reader(rows)
480480
found = {}
481481
line = 0

0 commit comments

Comments
 (0)