Opened 9 years ago
Last modified 9 years ago
#12151 closed defect
AttributeError is raiesd by hdfdump=1 parameter — at Initial Version
Reported by: | Jun Omae | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 1.0.9 |
Component: | rendering | Version: | 1.0.8 |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
This issue is introduced in [14186] (#12131).
2015-08-05 16:59:05,888 Trac[main] ERROR: Internal Server Error: Traceback (most recent call last): File "/venv/trac/1.0.8/lib/python2.5/site-packages/trac/web/main.py", line 551, in _dispatch_request dispatcher.dispatch(req) File "/venv/trac/1.0.8/lib/python2.5/site-packages/trac/web/main.py", line 258, in dispatch out = StringIO.StringIO() AttributeError: class StringIO has no attribute 'StringIO'
-
trac/web/main.py
diff --git a/trac/web/main.py b/trac/web/main.py index 909d75ec0..e01f91083 100644
a b import pkg_resources 27 27 from pprint import pformat, pprint 28 28 import re 29 29 import sys 30 import StringIO31 30 32 31 from genshi.builder import tag 33 32 from genshi.output import DocType … … class RequestDispatcher(Component): 255 254 if 'hdfdump' in req.args: 256 255 req.perm.require('TRAC_ADMIN') 257 256 # debugging helper - no need to render first 258 out = StringIO .StringIO()257 out = StringIO() 259 258 pprint(data, out) 260 259 req.send(out.getvalue(), 'text/plain') 261 260
Note:
See TracTickets
for help on using tickets.