From: Andrew M. Kuchling Date: Wed, 22 Oct 2003 14:38:54 +0000 (+0000) Subject: Add docstring X-Git-Tag: v2.4a1~1389 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7cebbf39a9df7bdde0ed2da314e6f651e114e22b;p=thirdparty%2FPython%2Fcpython.git Add docstring --- diff --git a/Lib/cmd.py b/Lib/cmd.py index 54be8a0463e4..0bb0c0372314 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