Skip to content

Commit

Permalink
pythongh-116493: Remove old Python 2.x _winreg imports from platform.…
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn authored Mar 8, 2024
1 parent fdb2d90 commit 7cee276
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions Lib/platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,10 +370,7 @@ def win32_is_iot():

def win32_edition():
try:
try:
import winreg
except ImportError:
import _winreg as winreg
import winreg
except ImportError:
pass
else:
Expand Down Expand Up @@ -432,10 +429,7 @@ def _win32_ver(version, csd, ptype):
csd = 'SP' + csd[13:]

try:
try:
import winreg
except ImportError:
import _winreg as winreg
import winreg
except ImportError:
pass
else:
Expand Down

0 comments on commit 7cee276

Please sign in to comment.