From cd7313a8d02f1da657e91f485806403da2f48cab Mon Sep 17 00:00:00 2001 From: Bill Dengler Date: Thu, 4 Jul 2024 12:11:09 -0700 Subject: [PATCH] Remove old winTerminalUIA module attribute --- source/NVDAObjects/UIA/winConsoleUIA.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/source/NVDAObjects/UIA/winConsoleUIA.py b/source/NVDAObjects/UIA/winConsoleUIA.py index 62f131d0e98..02a5885fab7 100644 --- a/source/NVDAObjects/UIA/winConsoleUIA.py +++ b/source/NVDAObjects/UIA/winConsoleUIA.py @@ -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)}")