Skip to content

Commit

Permalink
Remove old winTerminalUIA module attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
codeofdusk committed Jul 4, 2024
1 parent 4c50375 commit cd7313a
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions source/NVDAObjects/UIA/winConsoleUIA.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,18 +481,3 @@ def event_UIA_notification(
for line in displayString.splitlines():
if line and not line.isspace(): # Don't say "blank" during autoread
speech.speakText(line)


def __getattr__(attrName: str) -> Any:
"""Module level `__getattr__` used to preserve backward compatibility."""
if attrName == "WinTerminalUIA" and NVDAState._allowDeprecatedAPI():
log.warning(
"WinTerminalUIA is deprecated. "
"Instead use _DiffBasedWinTerminalUIA or _NotificationsBasedWinTerminalUIA",
)
return (
_NotificationsBasedWinTerminalUIA
if _shouldUseWindowsTerminalNotifications()
else _DiffBasedWinTerminalUIA
)
raise AttributeError(f"module {repr(__name__)} has no attribute {repr(attrName)}")

0 comments on commit cd7313a

Please sign in to comment.