This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients vstinner
Date 2020-04-30.23:45:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1588290308.75.0.293273104248.issue40459@roundup.psfhosted.org>
In-reply-to
Content
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 ;-)
History
Date User Action Args
2020-04-30 23:45:08vstinnersetrecipients: + vstinner
2020-04-30 23:45:08vstinnersetmessageid: <1588290308.75.0.293273104248.issue40459@roundup.psfhosted.org>
2020-04-30 23:45:08vstinnerlinkissue40459 messages
2020-04-30 23:45:08vstinnercreate