On Tuesday, October 28, 2014 5:30:31 PM UTC-5, Dan Stromberg wrote:
> On Tue, Oct 28, 2014 at 3:21 PM, Rick Dooling 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
On Tue, Oct 28, 2014 at 3:21 PM, Rick Dooling 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'
>
I'm an English major who hacks scripts together to do things as needed.
I used this code from the Python Cookbook for years.
https://www.safaribooksonline.com/library/view/python-cookbook-2nd/0596007973/ch01s12.html
Especially when I need to convert old WPD files to markdown, some of which
don'