comparison roundup/scripts/roundup_mailgw.py @ 5418:55f09ca366c4

Python 3 preparation: StringIO. This generally arranges for StringIO and cStringIO references to use io.StringIO for Python 3 but io.BytesIO for Python 2, consistent with the string representations generally used in Roundup. A special FasterStringIO in the TAL code, which referenced internals of the old Python 2 StringIO module, is cut down so it doesn't actually do anything beyond the StringIO class it inherits from (it would also be reasonable to remove FasterStringIO completely). One place in roundup_server.py clearly needing binary I/O is made to use io.BytesIO unconditionally.
author Joseph Myers <jsm@polyomino.org.uk>
date Wed, 25 Jul 2018 09:08:29 +0000
parents 64b05e24dbd8
children c7a9f9c1801d
comparison
equal deleted inserted replaced
5417:c749d6795bc2 5418:55f09ca366c4
35 35
36 # python version check 36 # python version check
37 from roundup import version_check 37 from roundup import version_check
38 from roundup import __version__ as roundup_version 38 from roundup import __version__ as roundup_version
39 39
40 import sys, os, re, cStringIO, getopt, socket, netrc 40 import sys, os, re, getopt, socket, netrc
41 41
42 from roundup import mailgw 42 from roundup import mailgw
43 from roundup.i18n import _ 43 from roundup.i18n import _
44 44
45 def usage(args, message=None): 45 def usage(args, message=None):

Roundup Issue Tracker: http://roundup-tracker.org/