From 5b836d47392d2ffb7205a30ac2b5786b208c3238 Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Wed, 29 Jun 2022 11:25:40 +0100 Subject: [PATCH] [build] Consistent order for lazy extractors (#4220) Authored by: lamby --- devscripts/make_lazy_extractors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devscripts/make_lazy_extractors.py b/devscripts/make_lazy_extractors.py index 785d66a6a1..60fcc5ef02 100644 --- a/devscripts/make_lazy_extractors.py +++ b/devscripts/make_lazy_extractors.py @@ -94,7 +94,7 @@ def sort_ies(ies, ignored_bases): for c in classes[:]: bases = set(c.__bases__) - {object, *ignored_bases} 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: assert b.__name__ != 'GenericIE', 'Cannot inherit from GenericIE' classes.insert(0, b)