[Python-checkins] cpython (merge 3.5 -> 3.6): Issue #28455: Merge from 3.5
berker.peksag
python-checkins at python.org
Sun Oct 16 23:14:48 EDT 2016
https://hg.python.org/cpython/rev/0b29adb5c804
changeset: 104519:0b29adb5c804
branch: 3.6
parent: 104516:738579b25d02
parent: 104518:4f8f7403881f
user: Berker Peksag <berker.peksag at gmail.com>
date: Mon Oct 17 06:14:48 2016 +0300
summary:
Issue #28455: Merge from 3.5
files:
Doc/library/argparse.rst | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst
--- a/Doc/library/argparse.rst
+++ b/Doc/library/argparse.rst
@@ -1958,10 +1958,11 @@
The method is called once per line read from the argument file, in order.
A useful override of this method is one that treats each space-separated word
- as an argument::
-
- def convert_arg_line_to_args(self, arg_line):
- return arg_line.split()
+ as an argument. The following example demonstrates how to do this::
+
+ class MyArgumentParser(argparse.ArgumentParser):
+ def convert_arg_line_to_args(self, arg_line):
+ return arg_line.split()
Exiting methods
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list