Skip to content

Fix up braille deprecations#20458

Draft
SaschaCowley wants to merge 15 commits into
masterfrom
braille-deprecations
Draft

Fix up braille deprecations#20458
SaschaCowley wants to merge 15 commits into
masterfrom
braille-deprecations

Conversation

@SaschaCowley

@SaschaCowley SaschaCowley commented Jul 7, 2026

Copy link
Copy Markdown
Member

Link to issue number:

Closes #20431
Follow-up to #20390

Summary of the issue:

In #20252, source/braille.py was split into the source/braille/ package. In #20390, the moved symbols were marked as deprecated. Internal code that uses these symbols was not updated to use the new paths, so logs are being flooded with deprecation warnings.

Description of user facing changes:

None.

Description of developer facing changes:

NVDA's logs should once again be useable.

Description of development approach:

Marked the tests.unit.test_braille.test_publicSurface.TestBraillePublicSurface.test_deprecatedNamesReturnCorrectObject test as skipped.

For each symbol in:

  • Searched NVDA's python code (source/ and tests/) for that symbol.
  • For each found instance:
    • Updated it to use the new path; and
    • Where the calling module did not already do so, imported the new symbol's module.
  • Commented out the redirect.
  • Ran unit tests.

Testing strategy:

Unit and system tests.

Known issues with pull request:

None known.

Code Review Checklist:

  • Documentation:
    • Change log entry
    • User Documentation
    • Developer / Technical Documentation
    • Context sensitive help for GUI changes
  • Testing:
    • Unit tests
    • System (end to end) tests
    • Manual testing
  • UX of all users considered:
    • Speech
    • Braille
    • Low Vision
    • Different web browsers
    • Localization in other languages / culture than English
  • API is compatible with existing add-ons.
  • Security precautions taken.



class InputGesture(braille.BrailleDisplayGesture, brailleInput.BrailleInputGesture):
class InputGesture(braille.display.gesture.BrailleDisplayGesture, brailleInput.BrailleInputGesture):


class InputGesture(braille.BrailleDisplayGesture, brailleInput.BrailleInputGesture):
class InputGesture(braille.display.gesture.BrailleDisplayGesture, brailleInput.BrailleInputGesture):


class InputGesture(braille.BrailleDisplayGesture, brailleInput.BrailleInputGesture):
class InputGesture(braille.display.gesture.BrailleDisplayGesture, brailleInput.BrailleInputGesture):


class InputGesture(braille.BrailleDisplayGesture, brailleInput.BrailleInputGesture):
class InputGesture(braille.display.gesture.BrailleDisplayGesture, brailleInput.BrailleInputGesture):


class InputGesture(braille.BrailleDisplayGesture, brailleInput.BrailleInputGesture):
class InputGesture(braille.display.gesture.BrailleDisplayGesture, brailleInput.BrailleInputGesture):


class InputGesture(braille.BrailleDisplayGesture, brailleInput.BrailleInputGesture):
class InputGesture(braille.display.gesture.BrailleDisplayGesture, brailleInput.BrailleInputGesture):


class InputGesture(braille.BrailleDisplayGesture, brailleInput.BrailleInputGesture):
class InputGesture(braille.display.gesture.BrailleDisplayGesture, brailleInput.BrailleInputGesture):


class KeyInputGesture(braille.BrailleDisplayGesture, brailleInput.BrailleInputGesture):
class KeyInputGesture(braille.display.gesture.BrailleDisplayGesture, brailleInput.BrailleInputGesture):


class BrailleInputGesture(braille.BrailleDisplayGesture, brailleInput.BrailleInputGesture):
class BrailleInputGesture(braille.display.gesture.BrailleDisplayGesture, brailleInput.BrailleInputGesture):


class InputGesture(braille.BrailleDisplayGesture, brailleInput.BrailleInputGesture):
class InputGesture(braille.display.gesture.BrailleDisplayGesture, brailleInput.BrailleInputGesture):
@LeonarddeR

Copy link
Copy Markdown
Collaborator

@SaschaCowley Thanks for taking this!

@hwf1324

hwf1324 commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

I noticed that there are still some deprecation warnings in the logs.

@seanbudd

seanbudd commented Jul 9, 2026

Copy link
Copy Markdown
Member

That's okay - several smaller PRs that tackle these individually is much easier to review

@SaschaCowley SaschaCowley force-pushed the braille-deprecations branch from 09160f5 to ddb470f Compare July 9, 2026 10:04
@SaschaCowley SaschaCowley requested a review from LeonarddeR July 9, 2026 10:07
@SaschaCowley

Copy link
Copy Markdown
Member Author

I believe this is done, pending system tests

@LeonarddeR

Copy link
Copy Markdown
Collaborator

I'm not sure how to review this properly, at first sight this looks good to me.

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.

A large number of deprecation warnings are flooding the logs.

4 participants