GNOME Bugzilla – Bug 750562
mangle-tmpl.py: Do not cast bytes to str implicitly
Last modified: 2015-06-08 21:09:14 UTC
Created attachment 304768 [details] [review] Fixes compilation with python3 Compilation under Arch Linux failed, because python == python3, and mangle-tmpl.py attempts to implicitly cast bytes to str: DOC Scanning header files Traceback (most recent call last):
+ Trace 235131
main()
'<fallback xmlns="http://www.w3.org/2003/XInclude" />' + \
Makefile:976: recipe for target 'tmpl-build.stamp' failed Attached patch should fix it, but neither do I really know what mangle-tmpl.py actually does, nor am I much of a python expert, so please review this mini-patch :)
Sorry about that. In commit http://cgit.freedesktop.org/gstreamer/common/commit/?id=d9a33530a24c3ea24a6e13bd343b440c5656740e I replaced mangle-tmpl.py with a simpler solution. The new script passes python3 -m py_compile mangle-db.py