Skip to content

Commit cf437b0

Browse files
committed
Remove roundup.anypy.io_
The io_ module was being used to provide backwards compatibility for python v2.5. Roundup has dropped support for python v2.5 so we can get rid of it.
1 parent b998f65 commit cf437b0

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

roundup/anypy/io_.py

Lines changed: 0 additions & 9 deletions
This file was deleted.

roundup/cgi/actions.py

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

34
from roundup import hyperdb, token, date, password
45
from roundup.actions import Action as BaseAction
56
from roundup.i18n import _
67
from roundup.cgi import exceptions, templating
78
from roundup.mailgw import uidFromAddress
89
from roundup.exceptions import Reject, RejectRaw
9-
from roundup.anypy import io_, urllib_
10+
from roundup.anypy import urllib_
1011

1112
__all__ = ['Action', 'ShowAction', 'RetireAction', 'SearchAction',
1213
'EditCSVAction', 'EditItemAction', 'PassResetAction',
@@ -297,7 +298,7 @@ def handle(self):
297298
props = ['id'] + props_without_id
298299

299300
# do the edit
300-
rows = io_.BytesIO(self.form['rows'].value)
301+
rows = BytesIO(self.form['rows'].value)
301302
reader = csv.reader(rows)
302303
found = {}
303304
line = 0

roundup/cgi/client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525

2626
from roundup.anypy.cookie_ import CookieError, BaseCookie, SimpleCookie, \
2727
get_cookie_date
28-
from roundup.anypy.io_ import StringIO
2928
from roundup.anypy import http_
3029
from roundup.anypy import urllib_
3130

0 commit comments

Comments
 (0)