Skip to content

Commit

Permalink
Remove Python 3.6 compatibility code.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Apr 3, 2022
1 parent 17a9a72 commit c080227
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions zipp.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,8 @@
import zipfile
import itertools
import contextlib
import sys
import pathlib

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


__all__ = ['Path']

Expand Down Expand Up @@ -56,7 +50,7 @@ def _ancestry(path):
path, tail = posixpath.split(path)


_dedupe = OrderedDict.fromkeys
_dedupe = dict.fromkeys
"""Deduplicate an iterable in original order"""


Expand Down

0 comments on commit c080227

Please sign in to comment.