summaryrefslogtreecommitdiffstats
path: root/Lib/argparse.py
diff options
context:
space:
mode:
authorRaymond Hettinger <rhettinger@users.noreply.github.com>2018-01-12 06:20:33 (GMT)
committerGitHub <noreply@github.com>2018-01-12 06:20:33 (GMT)
commit05565ed27e4445e99b59268ba42cf4dd598ece77 (patch)
tree2d639dfbb312218ec1d5139b474ec68abc53c21b /Lib/argparse.py
parent3764bb075a73074f55568fc7c37adde6054eb59a (diff)
downloadcpython-05565ed27e4445e99b59268ba42cf4dd598ece77.zip
cpython-05565ed27e4445e99b59268ba42cf4dd598ece77.tar.gz
cpython-05565ed27e4445e99b59268ba42cf4dd598ece77.tar.bz2
OrderedDict import is no longer needed (#4890)
Diffstat (limited to 'Lib/argparse.py')
-rw-r--r--Lib/argparse.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/argparse.py b/Lib/argparse.py
index d8bbd35..e3da7f0 100644
--- a/Lib/argparse.py
+++ b/Lib/argparse.py
@@ -83,7 +83,6 @@ __all__ = [
]
-import collections as _collections
import os as _os
import re as _re
import sys as _sys
@@ -1084,7 +1083,7 @@ class _SubParsersAction(Action):
self._prog_prefix = prog
self._parser_class = parser_class
- self._name_parser_map = _collections.OrderedDict()
+ self._name_parser_map = {}
self._choices_actions = []
super(_SubParsersAction, self).__init__(