Skip to content

Commit 76eebe0

Browse files
committed
Defer import of zipp
1 parent f9a91a1 commit 76eebe0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

importlib_metadata/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@
2929
from itertools import starmap
3030
from typing import Any, Iterable, List, Mapping, Match, Optional, Set, cast
3131

32-
from zipp.compat.overlay import zipfile
33-
3432
from . import _meta
3533
from ._collections import FreezableDefaultDict, Pair
3634
from ._compat import (
@@ -777,6 +775,8 @@ def children(self):
777775
return []
778776

779777
def zip_children(self):
778+
from zipp.compat.overlay import zipfile
779+
780780
zip_path = zipfile.Path(self.root)
781781
names = zip_path.root.namelist()
782782
self.joinpath = zip_path.joinpath

0 commit comments

Comments
 (0)