mirror of
https://github.com/python/cpython.git
synced 2025-11-01 14:11:41 +00:00
Add docstring
This commit is contained in:
parent
6c2871e707
commit
7cebbf39a9
1 changed files with 4 additions and 0 deletions
|
|
@ -169,6 +169,10 @@ def postloop(self):
|
||||||
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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue