From: Berker Peksag Date: Sun, 26 Apr 2015 09:09:54 +0000 (+0300) Subject: Issue #23356: Simplify convert_arg_line_to_args example. X-Git-Tag: v3.5.0b1~284^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8c99a6d6049b87b328073189719d9cc4bfc68b82;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 73f94808b659..ebf88fad54bb 100644 --- a/Doc/library/argparse.rst +++ b/Doc/library/argparse.rst @@ -1921,10 +1921,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