Skip to content

Remove scriptHandler.isCurrentScript which is never called#10468

Merged
michaelDCurran merged 1 commit into
masterfrom
i8677
Nov 10, 2019
Merged

Remove scriptHandler.isCurrentScript which is never called#10468
michaelDCurran merged 1 commit into
masterfrom
i8677

Conversation

@michaelDCurran

Copy link
Copy Markdown
Member

Link to issue number:

Fixes #8677

Summary of the issue:

scriptHandler.isCurrentScript was the only place left where old attribute names remain from Python2. Namely im_self. If this function were called it would fail on Python3.

Description of how this pull request fixes the issue:

Remove scriptHandler.isCurrentScript, as it is never called from NVDA's codebase, and has never been used in an add-on to our best knowledge.

Testing performed:

NVDA still runs. Scripts such as speak current line (pressed, once, twice, 3 times) function correctly.

Known issues with pull request:

There could be an add-on out there in the wild that did use this function. However, many other changes have been made in 2019.3 which would break these add-ons anyway. It will be listed as a change for developers.

Change log entry:

Changes for developers:

…ed to Python3, is not used in NVDA's codebase, and does not seem to be used by any add-ons.

@LeonarddeR LeonarddeR left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

For reference, git blame shows that this was introduced in 8738c34

@michaelDCurran

michaelDCurran commented Nov 6, 2019 via email

Copy link
Copy Markdown
Member Author

@LeonarddeR

LeonarddeR commented Nov 6, 2019 via email

Copy link
Copy Markdown
Collaborator

@michaelDCurran michaelDCurran merged commit f113017 into master Nov 10, 2019
@nvaccessAuto nvaccessAuto added this to the 2019.3 milestone Nov 10, 2019
michaelDCurran added a commit that referenced this pull request Nov 10, 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.

Remove Python 2 imports for modules renamed in python 3

3 participants