shedofjoy opened this issue on Apr 02, 2013 · 5 posts
ockham posted Tue, 02 April 2013 at 5:49 PM
That's an interesting idea. There are two different types of problem.
(1) A script that is only available in a compiled .PYC form can't be converted at all; it has to be rewritten by its author and then recompiled.
(2) A script that's written in .PY form (readable text) typically needs only a couple of predictable changes that I know of.
col=
needs to be changed to
column=
and
raise "some message"
needs to become
raise Exception("some message").
There are other differences between versions, but those are the ones that come up most often here.
I'll try writing a batch converter for those changes. I've got quite a few scripts with the raise Exception() problem, so I can test it and solve my own problem at the same time.