Python error running meld on an svn checkout
Running meld on an svn checkout results in an error parsing the XML output of the svn status command:
Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/meld/task.py", line 110, in iteration
ret = task()
File "/usr/lib/python3.9/site-packages/meld/vc/_vc.py", line 277, in refresh_vc_state
self._update_tree_state_cache(path)
File "/usr/lib/python3.9/site-packages/meld/vc/svn.py", line 188, in _update_tree_state_cache
for entry in (t for t in target.getchildren() if t.tag == "entry"):
AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'getchildren'
This is with meld 3.21.0 and python 3.9.0 and appears to be caused by getchildren
having been removed - replace it with iter
gets things working again. Note that there are actually two uses a few lines apart, both of which need replacing.
Edited by Tom Hughes