nvda
e18c5f40 - Python 3: except exception, e -> except as e (#9698)

Commit
6 years ago
Python 3: except exception, e -> except as e (#9698) * IAccessible object: except COMError, e -> COMError as e. In Python 2, the exception statement of the form 'except exception, e' was acceptable, no longer the case in Python 3 (requires 'except exception as e'). Thus use the latter in IAccessible objects and others. * Adobe Flash object: except COMError, e -> COMError as e. * Log viewer: except (IOError, OSError), e -> (IOError, OSError) as e. * Input core: except (configobj.ConfigObjError,UnicodeDecodeError), e -> (configobj.ConfigObjError,UnicodeDecodeError) as e. * NVDA slave: except exception, e -> exception as e. * NVWave: except WindowsError, e -> WindowsError as e.
Author
Committer
Parents
Loading