Modify ↓
#3065 closed defect (fixed)
unicode error in docutils
Reported by: | Christian Boos | Owned by: | Jonas Borgström |
---|---|---|---|
Priority: | normal | Milestone: | 0.10 |
Component: | general | Version: | devel |
Severity: | minor | Keywords: | unicode docutils rst |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
While reading through the p.e.c Trac log, found this one:
2006-04-19 03:23:38,464 Trac[browser] DEBUG: Rendering preview of node README@3209 with mime-type text/x-rst 2006-04-19 03:23:38,468 Trac[api] DEBUG: Trying to render HTML preview using ReStructuredTextRenderer 2006-04-19 03:23:38,689 Trac[api] WARNING: HTML preview using <trac.mimeview.rst.ReStructuredTextRenderer object at 0x41dd79\ cc> failed (coercing to Unicode: need string or buffer, instance found) Traceback (most recent call last): File "/usr/lib/python2.3/site-packages/trac/mimeview/api.py", line 287, in render filename, url) File "/usr/lib/python2.3/site-packages/trac/mimeview/rst.py", line 228, in render settings_overrides={'halt_level': 6}) File "/usr/lib/python2.3/site-packages/docutils/core.py", line 371, in publish_string enable_exit_status=enable_exit_status) File "/usr/lib/python2.3/site-packages/docutils/core.py", line 513, in publish_programmatically output = pub.publish(enable_exit_status=enable_exit_status) File "/usr/lib/python2.3/site-packages/docutils/core.py", line 194, in publish self.settings) File "/usr/lib/python2.3/site-packages/docutils/readers/__init__.py", line 65, in read self.input = self.source.read() File "/usr/lib/python2.3/site-packages/docutils/io.py", line 280, in read return self.decode(self.source) File "/usr/lib/python2.3/site-packages/docutils/io.py", line 84, in decode return unicode(data, enc) TypeError: coercing to Unicode: need string or buffer, instance found
Attachments (0)
Note:
See TracTickets
for help on using tickets.
Fixed in r3421.