py3: stop using deprecated Element.getchildren() method in convert/darcs stable
authorIan Moody <moz-ian@perix.co.uk>
Sun, 12 Jun 2022 16:04:57 +0100
branchstable
changeset 49372 270f8e89ff32
parent 49371 6833ccc5e74e
child 49373 f8ec7b16c98f
py3: stop using deprecated Element.getchildren() method in convert/darcs This has been deprecated since py3.2, and removed entirely in py3.9
hgext/convert/darcs.py
--- a/hgext/convert/darcs.py	Sun Jun 12 16:01:31 2022 +0100
+++ b/hgext/convert/darcs.py	Sun Jun 12 16:04:57 2022 +0100
@@ -178,7 +178,7 @@
         copies = {}
         changes = []
         man = None
-        for elt in self.changes[rev].find('summary').getchildren():
+        for elt in self.changes[rev].find('summary'):
             if elt.tag in ('add_directory', 'remove_directory'):
                 continue
             if elt.tag == 'move':