Commit 7cebbf39 authored by Andrew M. Kuchling's avatar Andrew M. Kuchling

Add docstring

parent 6c2871e7
...@@ -169,6 +169,10 @@ class Cmd: ...@@ -169,6 +169,10 @@ class Cmd:
pass pass
def parseline(self, line): 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() line = line.strip()
if not line: if not line:
return None, None, line return None, None, line
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment