3 ms·
I ran a 2to3 last week on a codebase I've been working for the past six months. Took me one try to get that I was missing a flag. 'git diff' cured me of thinkin
by lowmagnet 10y ago
I ran a 2to3 last week on a codebase I've been working for the past six months. Took me one try to get that I was missing a flag. 'git diff' cured me of thinking it wrote anything, and I found '-w' shortly after.
I guess a masochist could do something like pipe 1 to 'patch -p0' or something…
I ran into the same unicode issues as the author, and dumped all the code that handled it because I didn't need it in 3.
I also reduced the whole codebase by some 150 lines because of not needing to do a bunch of extra work I originally designed in when working through the code. This was more due to fresh eyes.
ETA: the code was on 2.7 because a library I needed wasn't yet available under python 3 (FuelSDK from SalesForce) until November, and I completely missed this. 1.0 version supports py 3, but it wasn't in pip.