This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author akitada
Recipients ajaksu2, akitada, brianvanden, eric.araujo, kjohnson, ncoghlan, ping, sunfinite, vstinner
Date 2014-01-13.09:20:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1389604809.4.0.992052938851.issue1185124@psf.upfronthosting.co.za>
In-reply-to
Content
I tried pydoc_2.7.patch with the following test file and
found source_synopsis returns \x escaped string instead of \u escaped one.


# -*- coding: utf-8 -*-

u"""ツ"""

class Spam(object):
    u"""ツ"""


>>> import utf8
>>> utf8.__doc__
u'\u30c4'
>>> print(utf8.__doc__)
ツ
>>> import pydoc
>>> pydoc.source_synopsis(file('utf8.py'))
u'\xe3\x83\x84'
>>> print pydoc.source_synopsis(file('utf8.py'))
ツ
>>> print pydoc.source_synopsis(file('utf8.py')).encode('latin-1')
ツ
History
Date User Action Args
2014-01-13 09:20:09akitadasetrecipients: + akitada, ping, ncoghlan, kjohnson, brianvanden, vstinner, ajaksu2, eric.araujo, sunfinite
2014-01-13 09:20:09akitadasetmessageid: <1389604809.4.0.992052938851.issue1185124@psf.upfronthosting.co.za>
2014-01-13 09:20:09akitadalinkissue1185124 messages
2014-01-13 09:20:09akitadacreate