From 771e3580c4bde031519011f3987c68712e1bf9f4 Mon Sep 17 00:00:00 2001 From: Alex Mikhalev Date: Thu, 23 May 2019 13:14:54 -0700 Subject: [PATCH] Fix a thing --- tools/ugv_cmd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/ugv_cmd.py b/tools/ugv_cmd.py index bd72d14..dd405a9 100755 --- a/tools/ugv_cmd.py +++ b/tools/ugv_cmd.py @@ -34,9 +34,9 @@ class CLI_CMD: cli_commands = [] -def cli_cmd(names=[], description=""): +def cli_cmd(names=None, description=""): def dec(fn: types.FunctionType): - if len(dec.names) is 0: + if dec.names is None: dec.names = [fn.__name__] cli_commands.append(CLI_CMD(fn, dec.names, dec.description)) return fn