From 7b1893d4c7d5654426dcfec4ebcd28ecb5951a85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?uml=C3=A4ute?= Date: Sun, 10 Jul 2022 16:05:18 +0200 Subject: [PATCH] Sort interface names, to make documentation reproducible (#1342) --- can/logger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/can/logger.py b/can/logger.py index 3594427e6..5aff5e4e1 100644 --- a/can/logger.py +++ b/can/logger.py @@ -43,7 +43,7 @@ def _create_base_argument_parser(parser: argparse.ArgumentParser) -> None: dest="interface", help="""Specify the backend CAN interface to use. If left blank, fall back to reading from configuration files.""", - choices=can.VALID_INTERFACES, + choices=sorted(can.VALID_INTERFACES), ) parser.add_argument(