Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAVExplorer.py: Fix XML warnings when opening a file #1245

Merged
merged 1 commit into from
Sep 17, 2023

Conversation

shancock884
Copy link
Contributor

When opening a file in MAVExplorer.py, I see the following warnings:

/home/simon/.mavproxy/Blimp.xml Unicode strings with encoding declaration are not supported. Please use bytes input or XML fragments without declaration.
/home/simon/.mavproxy/Rover.xml Unicode strings with encoding declaration are not supported. Please use bytes input or XML fragments without declaration.

There is already a comment and line in load_graphs function which selects XML files to not to open to avoid this warning. The fix implemented is simply to add "Blimp.xml", "Rover.xml" to this list.

Tested after fix, and warning does not appear, and tool behaves as expected.

@stephendade
Copy link
Contributor

Thanks! Merging...

@stephendade stephendade merged commit f307983 into ArduPilot:master Sep 17, 2023
@shancock884 shancock884 deleted the mavexplorer-xml-warnings branch September 28, 2023 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants