Commit 196623ba authored by Berker Peksag's avatar Berker Peksag

Issue #28455: Merge from 3.5

parents 9d8313d6 82e1c08a
...@@ -1958,8 +1958,9 @@ Customizing file parsing ...@@ -1958,8 +1958,9 @@ Customizing file parsing
The method is called once per line read from the argument file, in order. 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 A useful override of this method is one that treats each space-separated word
as an argument:: as an argument. The following example demonstrates how to do this::
class MyArgumentParser(argparse.ArgumentParser):
def convert_arg_line_to_args(self, arg_line): def convert_arg_line_to_args(self, arg_line):
return arg_line.split() return arg_line.split()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment