From 31200ff81b7433210c44c1f1fa55ffcdd46b097d Mon Sep 17 00:00:00 2001 From: Berker Peksag Date: Sun, 26 Apr 2015 12:12:45 +0300 Subject: [PATCH] Issue #23356: Simplify convert_arg_line_to_args example. Patch by py.user. --- Doc/library/argparse.rst | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst index fd75cfeb4cbe..9955646b671d 100644 --- a/Doc/library/argparse.rst +++ b/Doc/library/argparse.rst @@ -1884,10 +1884,7 @@ Customizing file parsing as an argument:: def convert_arg_line_to_args(self, arg_line): - for arg in arg_line.split(): - if not arg.strip(): - continue - yield arg + return arg_line.split() Exiting methods -- 2.47.3