bpo-40459: Fix NameError in platform.py (GH-19855)

2 files changed