2020-01-07, 09:57
(2020-01-06, 05:37)bossanova808 Wrote: Hi RudiMy Python3 is just a script hacking / learn on the fly :-) Been running for a few days now and has survived a couple of Milhouse mhupdates. So will probably be good.
As per github - thanks for your work here. I'm not on top of Python3 yet personally, so not quite ready to properly review and merge - but this at least gives brave V19 testers a branch they can pull from until I get to the point I can review and merge this (and my plan was to use move to a Python 3 / Leia only version and make the current version Matirx and below legacy code...so no real issue there I think).
I will hopefully get to this work in early to mid February...
I used the 2to3 code to do the first level of cleanup (fixed most of the range, unicode, imports, lists, urllib.parse, urllib.request) - was pretty painless.
The retrieve I did have to write (from some examples I googled) - as I wasn't keen in trying to work out why the return codes (200) on retrieve were ending up as the image on obsolete function in urllib2/3. The reference for this investigation was at: https://docs.python.org/3/library/urllib.request.html.
Happy to assist further / test / review compatibility / ... let me know.
Thanks for the excellent work in maintaining OzWeather (and juggling Real Life.) :-)