MAVProxy
MAVProxy copied to clipboard
Treewide: Remove python2 conditional logic/imports
Remove conditional imports and conditional logic searching for sys.version_info that only apply to python2.
Used ChatGTP with a grepped import list to find legacy python2 module logic too.
Here's a test plan based on the changes, I'll check off things as I go. I might request help on some of the modules like ntrip that I don't know how to use.
- [ ] Run mavproxy, import a module that doesn't exist with moddebug=3, see get_exception_stacktrace works.
- [ ] Check wx/wxagg backends warning show up for MacOS
- [ ] Check grapher can be instantiated
- [ ] Check mission_item_protocol can import
- [ ] Check mp_util can import
- [ ] Check
null_termworks - [ ] Test ntrip` can be initialized and getMountPointString works
- [ ] Check params can download of param_ftp
- [ ] Test windows rline.py
- [ ] Test srtm terrain can be read
- [ ] Test wavefront import
- [ ] Check wxsettings loads the dialog
- [ ] Check dataflash logs are written and parseable
- [ ] Ensure mavproxy_devop works
- [ ] Check mavproxy_ftp can import and
handle_list_replyis covered - [ ] Check mavproxy_link imports
- [ ] Check mp_tile can import and be instantiated
- [ ] Check mavproxy_misc can be imported and
cmd_playtuneworks - [ ] Check mavproxy_oldwp can still import
- [ ] Check OSD param_set works
- [ ] Check mavproxy_param can import
- [ ] CHeck signing
passphrase_to_keyworks andcmd_signing_setupworks - [ ] Check mavproxy_swarm
paramStringworks - [ ] Check mavproxy_useralerts can import
- [ ] Check MAVExplorer can print exceptions correctly
- [ ] Check setup.py build on windows