Skip to content

Commit 3f78dc1

Browse files
committed
Add comment to protect the deferred import.
1 parent 18eb2da commit 3f78dc1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

importlib_metadata/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -672,6 +672,7 @@ def origin(self):
672672
return self._load_json('direct_url.json')
673673

674674
def _load_json(self, filename):
675+
# Deferred for performance (python/importlib_metadata#503)
675676
import json
676677

677678
return pass_none(json.loads)(

0 commit comments

Comments
 (0)