[issue19543] Add -3 warnings for codec convenience method changes

Serhiy Storchaka report at bugs.python.org
Sun May 31 19:59:54 CEST 2015


Serhiy Storchaka added the comment:

Committed patch covers a large part of this issue, but not all.

Following patch emits py3k warning for unicode.decode(). For now unicode(u'a', 'ascii') is forbidden, but u'a'.decode('ascii') is allowed in 2.7.

The risk of false positive in this patch is lower than in emitting warning on str.encode(), but is larger than in just committed patch.

----------
Added file: http://bugs.python.org/file39576/issue19543_unicode_decode.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19543>
_______________________________________


More information about the Python-bugs-list mailing list