From e3d05aee70e4f9921da556de4d4e9641eb631d8c Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Mon, 27 Jan 2020 12:15:50 +0000 Subject: readconf: Stop comparing dicts directly (python3) --- lorrycontroller/readconf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lorrycontroller/readconf.py b/lorrycontroller/readconf.py index a8949c1..4e162a9 100644 --- a/lorrycontroller/readconf.py +++ b/lorrycontroller/readconf.py @@ -202,7 +202,7 @@ class ReadConfiguration(lorrycontroller.LorryControllerRoute): self.add_refspecs_if_missing(obj) lorry_specs.append((subpath, obj)) - for subpath, obj in sorted(lorry_specs): + for subpath, obj in sorted(lorry_specs, key=(lambda x: x[0])): path = self.deduce_repo_path(section, subpath) text = self.serialise_lorry_spec(path, obj) interval = section['interval'] -- cgit v1.2.1