Mercurial > p > roundup > code
diff roundup/cgi/cgitb.py @ 5433:86b6cea7a975
Python 3 preparation: avoid string.split().
| author | Joseph Myers <jsm@polyomino.org.uk> |
|---|---|
| date | Wed, 25 Jul 2018 10:42:42 +0000 |
| parents | 7172c201dec2 |
| children | 1ab2c81a64df |
line wrap: on
line diff
--- a/roundup/cgi/cgitb.py Wed Jul 25 10:41:32 2018 +0000 +++ b/roundup/cgi/cgitb.py Wed Jul 25 10:42:42 2018 +0000 @@ -112,7 +112,7 @@ etype, evalue = sys.exc_info()[0], sys.exc_info()[1] if type(etype) is type: etype = etype.__name__ - pyver = 'Python ' + string.split(sys.version)[0] + '<br>' + sys.executable + pyver = 'Python ' + sys.version.split()[0] + '<br>' + sys.executable head = pydoc.html.heading( _('<font size=+1><strong>%(exc_type)s</strong>: %(exc_value)s</font>') % {'exc_type': etype, 'exc_value': evalue},
