Terry J. Reedy added the comment:

I removed the incorrect * comment.

Attached is a 2.7 port of the 3.3 patch. It turns out that textwrap.TextWrap in 
2.7 is an old-style class. Such did not work previously because they do not 
have .__call__ and failed the hasattr() check, now a try:except check. In 2.7, 
callable(old) == True, so there must be an explicit type check. I added one in 
the patch.

----------
Added file: http://bugs.python.org/file33720/20338-2.7.diff

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue20338>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to