From 975818feb4f24c25e84b3586cfe68230f1ac84f5 Mon Sep 17 00:00:00 2001 From: kotfu Date: Sun, 29 Apr 2018 10:00:54 -0600 Subject: _command_and_args switched to static method --- cmd2/parsing.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cmd2/parsing.py') diff --git a/cmd2/parsing.py b/cmd2/parsing.py index 03937856..63766a8c 100644 --- a/cmd2/parsing.py +++ b/cmd2/parsing.py @@ -316,7 +316,8 @@ class StatementParser(): break return command - def _command_and_args(self, tokens: List[str]) -> Tuple[str, str]: + @staticmethod + def _command_and_args(tokens: List[str]) -> Tuple[str, str]: """given a list of tokens, and return a tuple of the command and the args as a string. """ -- cgit v1.2.1