hotkeys: use Alt-m for amend on macOS
[git-cola.git] / qtpy / QtNetworkAuth.py
blobf49adcec241ffafa221017622ce5271b1a7292ad
1 # -----------------------------------------------------------------------------
2 # Copyright © 2009- The Spyder Development Team
4 # Licensed under the terms of the MIT License
5 # (see LICENSE.txt for details)
6 # -----------------------------------------------------------------------------
8 """Provides QtNetworkAuth classes and functions."""
10 from . import (
11 PYQT5,
12 PYQT6,
13 PYSIDE2,
14 PYSIDE6,
15 QtBindingMissingModuleError,
16 QtModuleNotInstalledError,
19 if PYQT5:
20 try:
21 from PyQt5.QtNetworkAuth import *
22 except ModuleNotFoundError as error:
23 raise QtModuleNotInstalledError(
24 name="QtNetworkAuth",
25 missing_package="PyQtNetworkAuth",
26 ) from error
27 elif PYQT6:
28 try:
29 from PyQt6.QtNetworkAuth import *
30 except ModuleNotFoundError as error:
31 raise QtModuleNotInstalledError(
32 name="QtNetworkAuth",
33 missing_package="PyQt6-NetworkAuth",
34 ) from error
35 elif PYSIDE2:
36 raise QtBindingMissingModuleError(name="QtNetworkAuth")
37 elif PYSIDE6:
38 from PySide6.QtNetworkAuth import *