Mercurial > p > roundup > code
diff roundup/cgi/actions.py @ 5044:dce3cfe7ec61
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.
| author | John Kristensen <john@jerrykan.com> |
|---|---|
| date | Wed, 11 Feb 2015 00:44:16 +1100 |
| parents | 0428d2004a86 |
| children | e424987d294a |
line wrap: on
line diff
--- a/roundup/cgi/actions.py Thu Feb 12 00:55:00 2015 +1100 +++ b/roundup/cgi/actions.py Wed Feb 11 00:44:16 2015 +1100 @@ -1,4 +1,5 @@ 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 @@ -6,7 +7,7 @@ from roundup.cgi import exceptions, templating from roundup.mailgw import uidFromAddress from roundup.exceptions import Reject, RejectRaw -from roundup.anypy import io_, urllib_ +from roundup.anypy import urllib_ __all__ = ['Action', 'ShowAction', 'RetireAction', 'SearchAction', 'EditCSVAction', 'EditItemAction', 'PassResetAction', @@ -297,7 +298,7 @@ props = ['id'] + props_without_id # do the edit - rows = io_.BytesIO(self.form['rows'].value) + rows = BytesIO(self.form['rows'].value) reader = csv.reader(rows) found = {} line = 0
