[build] Consistent order for lazy extractors (#4220)

Authored by: lamby
pull/4068/head
Chris Lamb 3 years ago committed by GitHub
parent 84a251e1f5
commit 5b836d4739
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -94,7 +94,7 @@ def sort_ies(ies, ignored_bases):
for c in classes[:]: for c in classes[:]:
bases = set(c.__bases__) - {object, *ignored_bases} bases = set(c.__bases__) - {object, *ignored_bases}
restart = False restart = False
for b in bases: for b in sorted(bases, key=lambda x: x.__name__):
if b not in classes and b not in returned_classes: if b not in classes and b not in returned_classes:
assert b.__name__ != 'GenericIE', 'Cannot inherit from GenericIE' assert b.__name__ != 'GenericIE', 'Cannot inherit from GenericIE'
classes.insert(0, b) classes.insert(0, b)

Loading…
Cancel
Save