From c0802277a1b9d799118751a4f032b495172ef1f5 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sun, 3 Apr 2022 10:52:45 -0400 Subject: [PATCH] Remove Python 3.6 compatibility code. --- zipp.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/zipp.py b/zipp.py index 26b723c..837237c 100644 --- a/zipp.py +++ b/zipp.py @@ -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'] @@ -56,7 +50,7 @@ def _ancestry(path): path, tail = posixpath.split(path) -_dedupe = OrderedDict.fromkeys +_dedupe = dict.fromkeys """Deduplicate an iterable in original order"""