From 8c99a6d6049b87b328073189719d9cc4bfc68b82 Mon Sep 17 00:00:00 2001 From: Berker Peksag Date: Sun, 26 Apr 2015 12:09:54 +0300 Subject: 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 73f9480..ebf88fa 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 -- cgit v0.12