diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2003-10-22 14:38:54 +0000 |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2003-10-22 14:38:54 +0000 |
commit | 12672e8fd63bbd5ed09bcbd763dc59dcc21f89c8 (patch) | |
tree | 6fca4784f907eadc5c98758397da587cc25684e4 /Lib/cmd.py | |
parent | 7923b155b454da1e695f5917bf67c5c9af39821c (diff) | |
download | cpython-12672e8fd63bbd5ed09bcbd763dc59dcc21f89c8.tar.gz |
Add docstring
Diffstat (limited to 'Lib/cmd.py')
-rw-r--r-- | Lib/cmd.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/cmd.py b/Lib/cmd.py index 54be8a0463..0bb0c03723 100644 --- a/Lib/cmd.py +++ b/Lib/cmd.py @@ -169,6 +169,10 @@ class Cmd: pass def parseline(self, line): + """Parse the line into a command name and a string containing + the arguments. Returns a tuple containing (command, args, line). + 'command' and 'args' may be None if the line couldn't be parsed. + """ line = line.strip() if not line: return None, None, line |