From d1397c779c273997d6e313724500340dc2584b95 Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Fri, 14 Oct 2016 20:55:06 +0300 Subject: [PATCH] transport_hid: return sorted list of devices (#77) This should be deterministic, since dict.values() order is unpredictable. --- trezorlib/transport_hid.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trezorlib/transport_hid.py b/trezorlib/transport_hid.py index 604c6364a..a093f927b 100644 --- a/trezorlib/transport_hid.py +++ b/trezorlib/transport_hid.py @@ -26,7 +26,7 @@ def enumerate(): devices[serial_number][1] = path # List of two-tuples (path_normal, path_debuglink) - return list(devices.values()) + return sorted(devices.values()) def path_to_transport(path): try: