checking whether a string is text or binary
Dan Stromberg
drsalists at gmail.com
Tue Oct 28 18:30:15 EDT 2014
More information about the Python-list mailing list
Tue Oct 28 18:30:15 EDT 2014
- Previous message (by thread): checking whether a string is text or binary
- Next message (by thread): checking whether a string is text or binary
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, Oct 28, 2014 at 3:21 PM, Rick Dooling <rpdooling at gmail.com> wrote: > I tried to convert the code using 2to3 and it broke. > > The error I get when using Python 3 is on this line: > > _null_trans = string.maketrans("", "") > > and the error reads > > AttributeError: 'module' object has no attribute 'maketrans' > > Any help? I barely understand the whole unicode business, but any guidance in updating the code would be much appreciated. Top hit on "python3 maketrans" in Google: http://stackoverflow.com/questions/3031045/how-come-string-maketrans-does-not-work-in-python-3-1
- Previous message (by thread): checking whether a string is text or binary
- Next message (by thread): checking whether a string is text or binary
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list