diff options
Diffstat (limited to 'libbe/storage/vcs/darcs.py')
-rw-r--r-- | libbe/storage/vcs/darcs.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/libbe/storage/vcs/darcs.py b/libbe/storage/vcs/darcs.py index 5ec9a26..12eabf4 100644 --- a/libbe/storage/vcs/darcs.py +++ b/libbe/storage/vcs/darcs.py @@ -44,12 +44,6 @@ if libbe.TESTING: import unittest -# https://stackoverflow.com/a/56719588/164233 -def cmp(a, b): - return (int(a) > int(b)) - (int(a) < int(b)) - - - def new(): return Darcs() @@ -286,9 +280,9 @@ class Darcs(base.VCS): xml_str = output.encode('unicode_escape').replace(r'\n', '\n') element = ElementTree.XML(xml_str) assert element.tag == 'changelog', element.tag - for patch in element.getchildren(): + for patch in element: assert patch.tag == 'patch', patch.tag - for child in patch.getchildren(): + for child in patch: if child.tag == 'name': text = unescape(str(child.text).decode('unicode_escape').strip()) revisions.append(text) |