Skip to content

Commit

Permalink
Reduce import overhead of uuid module
Browse files Browse the repository at this point in the history
This follows in the footsteps of python#21586
  • Loading branch information
hauntsaninja committed Feb 8, 2024
1 parent a768e12 commit 3ecc291
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Lib/uuid.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,11 @@
__author__ = 'Ka-Ping Yee <ping@zesty.ca>'

# The recognized platforms - known behaviors
if sys.platform in ('win32', 'darwin', 'emscripten', 'wasi'):
if sys.platform in {'win32', 'darwin', 'emscripten', 'wasi'}:
_AIX = _LINUX = False
elif sys.platform == 'linux':
_LINUX = True
_AIX = False
else:
import platform
_platform_system = platform.system()
Expand Down

0 comments on commit 3ecc291

Please sign in to comment.