Skip to content

Python3: import HRESULT from comtypes instead of ctypes.wintypes - #9745

Merged
michaelDCurran merged 1 commit into
threshold_py3_stagingfrom
py3_hresultMoved
Jun 15, 2019
Merged

Python3: import HRESULT from comtypes instead of ctypes.wintypes #9745
michaelDCurran merged 1 commit into
threshold_py3_stagingfrom
py3_hresultMoved

Conversation

@michaelDCurran

Copy link
Copy Markdown
Member

Link to issue number:

None.

Summary of the issue:

In Python3, HRESULT is no longer available in ctypes.wintypes.
There is just one file in our code base that gets it from there. This should be changed to import from comtypes.

Description of how this pull request fixes the issue:

objidl.py: import HRESULT from comtypes rather than ctypes.wintypes.

Testing performed:

objidl successfully imports when starting NVDA.

Known issues with pull request:

None.

Change log entry:

None.

Section: New features, Changes, Bug fixes

@michaelDCurran michaelDCurran changed the title import HRESULT from comtypes instead of ctypes.wintypes Python3: import HRESULT from comtypes instead of ctypes.wintypes Jun 15, 2019
@josephsl

josephsl commented Jun 15, 2019 via email

Copy link
Copy Markdown
Contributor

@michaelDCurran
michaelDCurran requested a review from josephsl June 15, 2019 05:03

@josephsl josephsl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, thanks for taking care of this.

@michaelDCurran
michaelDCurran merged commit 5ec1aeb into threshold_py3_staging Jun 15, 2019
@nvaccessAuto nvaccessAuto added this to the 2019.3 milestone Jun 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants