-
Notifications
You must be signed in to change notification settings - Fork 206
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
Convert agraph.py warnings from bytes to strings #95
Conversation
That looks like the right fix. We should figure out how to add a test for this. |
Warning and error raising behaviour is not correct on Python 3, where bytes objects cannot be implicitly converted to strings, and the warnings cause a TypeError crash. This patch adds default decoding for errors and warnings that happen when _run_prog is used and fixes errors on Windows when e.g. no default fonts are available.
I don't see an easy way for testing The I hope we can merge this since currently the program can't be used on Windows on Python 3 and the patch does not regress any functionality. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems to work on my system ... with conda and python 3.5
Fixed in 272a113 |
Warning and error raising behaviour is not correct on Python 3,
where bytes objects cannot be implicitly converted to strings,
and the warnings cause a TypeError crash.
Fixes #94