[New-bugs-announce] [issue17823] 2to3 fixers for
Serhiy Storchaka
report at bugs.python.org
Tue Apr 23 20:11:54 CEST 2013
New submission from Serhiy Storchaka:
Quoting Victor Stinner from msg106669:
"""
It's maybe possible for write some 2to3 fixers for the following examples:
"...".encode("base64") => base64.b64encode("...")
"...".encode("rot13") => do nothing (but display a warning?)
"...".encode("zlib") => zlib.compress("...")
"...".encode("hex") => base64.b16encode("...")
"...".encode("bz2") => bz2.compress("...")
"...".decode("base64") => base64.b64decode("...")
"...".decode("rot13") => do nothing (but display a warning?)
"...".decode("zlib") => zlib.decompress("...")
"...".decode("hex") => base64.b16decode("...")
"...".decode("bz2") => bz2.decompress("...")
"""
Unfortunately I don't know where is the syntax for writing fixers.
----------
components: 2to3 (2.x to 3.x conversion tool)
messages: 187662
nosy: benjamin.peterson, serhiy.storchaka
priority: normal
severity: normal
status: open
title: 2to3 fixers for
type: enhancement
versions: Python 2.7, Python 3.3, Python 3.4
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17823>
_______________________________________
More information about the New-bugs-announce
mailing list