pitivi has syntax errors when using Python 2.6
@brian.cameron
Submitted by Brian Cameron Assigned to Brian Cameron @brian.cameron
Description
When I build pitivi to use Python 2.6, I get these syntax errors when I try to run it:
Traceback (most recent call last):
File "/usr/bin/pitivi", line 122, in <module>
_run_pitivi()
File "/usr/bin/pitivi", line 111, in _run_pitivi
import pitivi.pitivi as ptv
File "/usr/lib/pitivi/python/pitivi/pitivi.py", line 33, in <module>
from project import Project, file_is_project
File "/usr/lib/pitivi/python/pitivi/project.py", line 30, in <module>
from timeline.timeline import Timeline
File "/usr/lib/pitivi/python/pitivi/timeline/timeline.py", line 198
as = self.audiocomp._getAutoSettings()
^
SyntaxError: invalid syntax
I am guessing that "as" is a reserved word or something. I notice that changing the variable name to "asfoo" fixes the problem. I'm sure this isn't the best thing to rename the variable, but since I am not familiar with the code I'm unsure of a better name. Perhaps you could rename this upstream to
something more sensible to avoid this error?
Providing a patch that fixes this problem.
Imported from https://bugzilla.gnome.org/show_bug.cgi?id=575982