

def __enter__(self):
    original_mode = DWORD()
    windll.kernel32.GetConsoleMode(self.handle, pointer(original_mode))
    self.original_mode = self
    self._patch()

dataset/ETHPy150Open jonathanslenders/python-prompt-toolkit/prompt_toolkit/terminal/win32_input.py raw_mode.__enter__/VarMisuse@36/48 `original_mode`->`self`