diff options
| author | Steven Bethard <steven.bethard@gmail.com> | 2011-03-27 11:57:55 (GMT) | 
|---|---|---|
| committer | Steven Bethard <steven.bethard@gmail.com> | 2011-03-27 11:57:55 (GMT) | 
| commit | bc3b104e46be0367b46d614f925ef78e4a0225ef (patch) | |
| tree | f5bab049caf1ea8a057524d30b2aedf9030f263d /Lib/argparse.py | |
| parent | 49b0ce06f01a27c98a61a1287ea1b8d40c0f2e51 (diff) | |
| download | cpython-bc3b104e46be0367b46d614f925ef78e4a0225ef.zip cpython-bc3b104e46be0367b46d614f925ef78e4a0225ef.tar.gz cpython-bc3b104e46be0367b46d614f925ef78e4a0225ef.tar.bz2  | |
Issue #9026: Fix order of argparse sub-commands in help messages. (Merged from 3.2.)
Diffstat (limited to 'Lib/argparse.py')
| -rw-r--r-- | Lib/argparse.py | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/argparse.py b/Lib/argparse.py index d4e691d..5b5598f 100644 --- a/Lib/argparse.py +++ b/Lib/argparse.py @@ -82,6 +82,7 @@ __all__ = [  ] +import collections as _collections  import copy as _copy  import os as _os  import re as _re @@ -1037,7 +1038,7 @@ class _SubParsersAction(Action):          self._prog_prefix = prog          self._parser_class = parser_class -        self._name_parser_map = {} +        self._name_parser_map = _collections.OrderedDict()          self._choices_actions = []          super(_SubParsersAction, self).__init__(  | 
