[issue6440] 2to3: convert deprecated string.maketrans to str.maketrans

Eric Eisner report at bugs.python.org
Wed Jul 8 16:13:20 CEST 2009


New submission from Eric Eisner <ede at mit.edu>:

string.maketrans has been deprecated in 3.x in favor of the more
specific bytes.maketrans and str.maketrans (see issue5675). It would be
nice if 2to3 would automatically translate this to one of those two
(probably str.maketrans).

I briefly looked at lib2to3/fixes/fix_renames.py, but this only seems to
convert things of the form module.X to module.Y. Is there another script
that deals with these jumping-around functions?

----------
components: 2to3 (2.x to 3.0 conversion tool)
messages: 90268
nosy: ede
severity: normal
status: open
title: 2to3: convert deprecated string.maketrans to str.maketrans
type: feature request

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


More information about the Python-bugs-list mailing list