summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2003-10-22 14:38:54 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2003-10-22 14:38:54 (GMT)
commit7cebbf39a9df7bdde0ed2da314e6f651e114e22b (patch)
treec2128c7cb35aae8689ce856492caaacf4deaca1e /Lib
parent6c2871e707b88cede6a18e72c6c55721da9b610f (diff)
downloadcpython-7cebbf39a9df7bdde0ed2da314e6f651e114e22b.zip
cpython-7cebbf39a9df7bdde0ed2da314e6f651e114e22b.tar.gz
cpython-7cebbf39a9df7bdde0ed2da314e6f651e114e22b.tar.bz2
Add docstring
Diffstat (limited to 'Lib')
-rw-r--r--Lib/cmd.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/cmd.py b/Lib/cmd.py
index 54be8a0..0bb0c03 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