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 <>
pyflakes found the two following issues in

Lib/ undefined name 'HKEY_LOCAL_MACHINE'
Lib/ 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 ;-)
Date User Action Args
2020-04-30 23:45:08vstinnersetrecipients: + vstinner
2020-04-30 23:45:08vstinnersetmessageid: <>
2020-04-30 23:45:08vstinnerlinkissue40459 messages
2020-04-30 23:45:08vstinnercreate