Issue #37 open

str.maketrans gets refactored wrongly into unicode.maketrans

created an issue


str.maketrans from python 3 gets refactored into unicode.maketrans. This member function does not exist in python 2. The correct behaviour is to instead import string and use string.maketrans.

Comments (2)

  1. Joe Amenta repo owner

    Looks like as of Python 3.1, str.maketrans is deprecated in favor of bytes.maketrans. Not going to touch str.maketrans, since that has a different signature and slightly different semantics.

  2. Log in to comment