Skip to content

Commit

Permalink
Rely on dict on Python 3.7 and later where ordering is guaranteed. Pe…
Browse files Browse the repository at this point in the history
…rformance is better. Ref python/cpython#18540 (comment).
  • Loading branch information
jaraco committed Feb 22, 2020
1 parent 3d17ee5 commit 19599b7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion zipp.py
Expand Up @@ -3,7 +3,12 @@
import zipfile
import itertools
import contextlib
from collections import OrderedDict
import sys

if sys.version_info < (3, 7):
from collections import OrderedDict
else:
OrderedDict = dict


def _parents(path):
Expand Down

0 comments on commit 19599b7

Please sign in to comment.