summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alvarez <pedro.alvarez@codethink.co.uk>2020-01-27 12:15:50 +0000
committerPedro Alvarez <pedro.alvarez@codethink.co.uk>2020-01-27 12:33:04 +0000
commite3d05aee70e4f9921da556de4d4e9641eb631d8c (patch)
tree980bec5b6659b6b7670325700c5d721953f4d42d
parent95505797df503a086a311cab9aecbd2318522407 (diff)
downloadlorry-controller-e3d05aee70e4f9921da556de4d4e9641eb631d8c.tar.gz
readconf: Stop comparing dicts directly (python3)
-rw-r--r--lorrycontroller/readconf.py2
1 files changed, 1 insertions, 1 deletions
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']