From 61a2ab4303c0a58f98bded0762f0c2fc9f0acb7b Mon Sep 17 00:00:00 2001 From: matejcik Date: Thu, 15 Mar 2018 19:55:26 +0100 Subject: [PATCH] pb2py: keep imports sorted --- tools/pb2py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/pb2py b/tools/pb2py index 4b8685341f..3cda885686 100755 --- a/tools/pb2py +++ b/tools/pb2py @@ -136,7 +136,7 @@ def process_file(descriptor, protobuf_module, genpath, indexfile, modlist, is_up msg_types = import_pb2('messages').MessageType - for name, message_descriptor in descriptor.message_types_by_name.items(): + for name, message_descriptor in sorted(descriptor.message_types_by_name.items()): # Find message type for given class try: msg_id = msg_types.Value("MessageType_%s" % name)