Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3: use importlib for importing modules #9693

Merged

Conversation

josephsl
Copy link
Collaborator

@josephsl josephsl commented Jun 7, 2019

Hi,

Reworked version of a previous PR:

Link to issue number:

Fixes #8768

Summary of the issue:

Uses importlib for importing modules instead of using import function.

Description of how this pull request fixes the issue:

Same as a reverted PR but only concerns importlib. This affects IAccessible objects, app modules, braille display drivers, global plugin handler and synth drivers.

Also, unlike previous PR, this one is strictly Python 3 - no encoding/decoding done.

Testing performed:

Tested with source code copy (Python 2 and 3).

Known issues with pull request:

Possible Unicode-related issues may surface.

Change log entry:

None

@michaelDCurran michaelDCurran changed the base branch from threshold to threshold_py3_staging June 8, 2019 03:44
@michaelDCurran michaelDCurran merged commit 8b82c5d into nvaccess:threshold_py3_staging Jun 8, 2019
@nvaccessAuto nvaccessAuto added this to the 2019.3 milestone Jun 8, 2019
Copy link
Contributor

@feerrenrut feerrenrut left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks @josephsl

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.

4 participants