From 05565ed27e4445e99b59268ba42cf4dd598ece77 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Thu, 11 Jan 2018 22:20:33 -0800 Subject: [PATCH] OrderedDict import is no longer needed (#4890) --- Lib/argparse.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Lib/argparse.py b/Lib/argparse.py index d8bbd352fd..e3da7f0443 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__( -- 2.40.0