GNOME Bugzilla – Bug 580325
rsvg python script crashes if the default python version is >= 3
Last modified: 2012-01-14 16:02:24 UTC
Steps to reproduce: The rsvg python script obtains the python interpreter from the current PATH on whatever platform it is running, so it could be any version. But this script contains print statements, which will not compile for version >= 3. There may be other incompatibilities. See similar bug #559947. This is also http://trac.macports.org/ticket/19442 . Stack trace: Other information:
Patches welcomed. I'll apply those. The script only exists to replace a deprecated program, so this isn't much of a priority.
Created attachment 133406 [details] [review] Fix print statements to be compatible with Python 3. This patch delays the pain by fixing all print statements to be compatible with both Python 2 and Python 3. However, more extensive changes will be needed as Python 3 gradually drifts away from Python 2. In particular, the string format operator "%" is scheduled to be deprecated in Python 3.1.
Would there be any objections to just removing this old, deprecated, compat, script?
(In reply to comment #3) > Would there be any objections to just removing this old, deprecated, compat, > script? No, none.
Done on master.