[New-bugs-announce] [issue40459] [easy] undefined names in platform.py

STINNER Victor report at bugs.python.org
Thu Apr 30 19:45:08 EDT 2020


New submission from STINNER Victor <vstinner at python.org>:

pyflakes found the two following issues in platform.py:

Lib/platform.py:401:35 undefined name 'HKEY_LOCAL_MACHINE'
Lib/platform.py:402:25 undefined name 'QueryValueEx'

Line 353:

            with winreg.OpenKeyEx(winreg.HKEY_LOCAL_MACHINE, cvkey) as key:
                return winreg.QueryValueEx(key, 'EditionId')[0]

vs Line 401:

            with winreg.OpenKeyEx(HKEY_LOCAL_MACHINE, cvkey) as key:
                ptype = QueryValueEx(key, 'CurrentType')[0]


This issue seems easy to fix ;-)

----------
components: Library (Lib)
keywords: newcomer friendly
messages: 367808
nosy: vstinner
priority: normal
severity: normal
status: open
title: [easy] undefined names in platform.py
versions: Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40459>
_______________________________________


More information about the New-bugs-announce mailing list