New submission from Eric Eisner <e...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue6440> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com