Will do. The current plan is:
1. Test the plain `.replace()` method on ~10.000 or more random .ui files from GitHub 2. I expect to encounter plenty of edge cases, and if I do, look into AST. 3. If that fails, look into whatever the https://github.com/rferrazz/pyqt4topyqt5 project is doing and try that. I'm sure each of these approaches will have warts of its own, so if there are any other suggestions, I'm all ears. On 8 September 2016 at 09:38, Justin Israel <[email protected]> wrote: > > > On Thu, 8 Sep 2016, 7:09 PM Marcus Ottosson <[email protected]> > wrote: > >> Good thoughts. >> >> I've always wanted a reason to get into AST, perhaps now is the time. >> >> Thanks Justin. >> > > Sweet. Let us know if you end up going down that path. Would love to see > it in action. > >> -- >> You received this message because you are subscribed to the Google Groups >> "Python Programming for Autodesk Maya" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit https://groups.google.com/d/ >> msgid/python_inside_maya/CAFRtmOAw-4OzCXB4T5qTKdxf9G8x% >> 2BgY3M%2BpMLMTByyOtHEEJow%40mail.gmail.com >> <https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOAw-4OzCXB4T5qTKdxf9G8x%2BgY3M%2BpMLMTByyOtHEEJow%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/python_inside_maya/CAPGFgA3aQFgm0BbA0La_ibx%3DFV- > ExARHoOecAWE68XUXUwZbQg%40mail.gmail.com > <https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3aQFgm0BbA0La_ibx%3DFV-ExARHoOecAWE68XUXUwZbQg%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- *Marcus Ottosson* [email protected] -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOBtaE9MvSgfBRxYm_%2BQbxzdRHm5fW_9dELnoOWqq4-sZw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
