mirror of
https://github.com/python/cpython.git
synced 2025-09-27 18:59:43 +00:00
Issue #23356: Simplify convert_arg_line_to_args example.
Patch by py.user.
This commit is contained in:
commit
a7edf1e57c
1 changed files with 1 additions and 4 deletions
|
@ -1948,10 +1948,7 @@ Customizing file parsing
|
||||||
as an argument::
|
as an argument::
|
||||||
|
|
||||||
def convert_arg_line_to_args(self, arg_line):
|
def convert_arg_line_to_args(self, arg_line):
|
||||||
for arg in arg_line.split():
|
return arg_line.split()
|
||||||
if not arg.strip():
|
|
||||||
continue
|
|
||||||
yield arg
|
|
||||||
|
|
||||||
|
|
||||||
Exiting methods
|
Exiting methods
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue