OrderedDict import is no longer needed (#4890) · python/cpython@05565ed

Original file line numberDiff line numberDiff line change

@@ -83,7 +83,6 @@

8383

]

8484
8585
86-

import collections as _collections

8786

import os as _os

8887

import re as _re

8988

import sys as _sys

@@ -1084,7 +1083,7 @@ def __init__(self,

10841083
10851084

self._prog_prefix = prog

10861085

self._parser_class = parser_class

1087-

self._name_parser_map = _collections.OrderedDict()

1086+

self._name_parser_map = {}

10881087

self._choices_actions = []

10891088
10901089

super(_SubParsersAction, self).__init__(