GNOME Bugzilla – Bug 724803
snippets plugin broken with Python 3.4
Last modified: 2014-02-22 09:45:26 UTC
$ gedit Traceback (most recent call last):
+ Trace 233198
self.accel_group = Library().get_accel_group(None)
self.ensure(language)
self.ensure_files()
self.add_user_library)
addcb(f)
return self.add_library(library)
library.ensure_language()
for element in self.parse_xml(256):
parser = et.XMLTreeBuilder(target=builder)
Traceback (most recent call last): File "/usr/lib/x86_64-linux-gnu/gedit/plugins/snippets/windowactivatable.py", line 71, in do_deactivate if self.accel_group: AttributeError: 'WindowActivatable' object has no attribute 'accel_group' XMLTreeBuilder was changed to XMLParser in ElementTree 1.3. Python 3.4 dropped the compatibility XMLTreeBuilder object. See downstream bug report: https://bugs.launchpad.net/ubuntu/+source/gedit/+bug/1282607
Created attachment 269808 [details] [review] patch to fix python 3.4 compatibility
Review of attachment 269808 [details] [review]: Looks good.
Comment on attachment 269808 [details] [review] patch to fix python 3.4 compatibility thanks!