Skip to content

Commit

Permalink
Revert "Defer platform import"
Browse files Browse the repository at this point in the history
This reverts commit 8436e81.
  • Loading branch information
jaraco committed Sep 11, 2024
1 parent 8436e81 commit 18eb2da
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions importlib_metadata/_compat.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import platform
import sys

__all__ = ['install', 'NullFinder']
Expand Down Expand Up @@ -51,7 +52,5 @@ def pypy_partial(val):
Workaround for #327.
"""
import platform

is_pypy = platform.python_implementation() == 'PyPy'
return val + is_pypy

0 comments on commit 18eb2da

Please sign in to comment.