[issue20662] Pydoc doesn't escape parameter defaults in html

2014-11-17 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Here is a patch which fixes this issue. Html formatting was broken by 
issue19674.

--
keywords: +patch
nosy: +larry
stage:  - patch review
versions: +Python 3.5
Added file: http://bugs.python.org/file37217/pydoc_escape_argspec.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20662
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20662] Pydoc doesn't escape parameter defaults in html

2014-11-17 Thread Larry Hastings

Larry Hastings added the comment:

LGTM

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20662
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20662] Pydoc doesn't escape parameter defaults in html

2014-11-17 Thread Roundup Robot

Roundup Robot added the comment:

New changeset cf2e424e0413 by Serhiy Storchaka in branch '3.4':
Issue #20662: Argspec now is escaped in html output of pydoc.
https://hg.python.org/cpython/rev/cf2e424e0413

New changeset 1855b5c3da61 by Serhiy Storchaka in branch 'default':
Issue #20662: Argspec now is escaped in html output of pydoc.
https://hg.python.org/cpython/rev/1855b5c3da61

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20662
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20662] Pydoc doesn't escape parameter defaults in html

2014-11-17 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thanks for the review Larry.

There is related minor issue. The formatvalue method is no longer used in 
HTMLDoc. This can break user code which inherits HTMLDoc and overrides 
formatvalue.

--
assignee:  - serhiy.storchaka
resolution:  - fixed
stage: patch review - resolved
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20662
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20662] Pydoc doesn't escape parameter defaults in html

2014-02-17 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

Pydoc doesn't escape parameter defaults in generated html files. For example 
for the socket.__init__() method in the socket module following html code is 
generated:

dldta name=socket-__init__strong__init__/strong/a(self, 
family=AddressFamily.AF_INET: 2, type=SocketType.SOCK_STREAM: 1, proto=0, 
fileno=None)/dt/dl

As result AddressFamily.AF_INET: 2 and SocketType.SOCK_STREAM: 1 aren't 
visible in browser (they are illegal html tags).

--
components: Library (Lib)
messages: 211426
nosy: georg.brandl, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Pydoc doesn't escape parameter defaults in html
type: behavior
versions: Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20662
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com