Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7cebbf3

Browse files
committed
Add docstring
1 parent 6c2871e commit 7cebbf3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Lib/cmd.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,10 @@ def postloop(self):
169169
pass
170170

171171
def parseline(self, line):
172+
"""Parse the line into a command name and a string containing
173+
the arguments. Returns a tuple containing (command, args, line).
174+
'command' and 'args' may be None if the line couldn't be parsed.
175+
"""
172176
line = line.strip()
173177
if not line:
174178
return None, None, line

0 commit comments

Comments
 (0)