From: Berker Peksag Date: Sun, 26 Apr 2015 09:12:45 +0000 (+0300) Subject: Issue #23356: Simplify convert_arg_line_to_args example. X-Git-Tag: v2.7.10rc1~21 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=31200ff81b7433210c44c1f1fa55ffcdd46b097d;p=thirdparty%2FPython%2Fcpython.git Issue #23356: Simplify convert_arg_line_to_args example. Patch by py.user. --- 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