tests: prefer functions over methods
[git-cola.git] / qtpy / QtSql.py
blob98520bef51330666e4e8b93e3cb9659f8e06cce9
1 # -*- coding: utf-8 -*-
2 # -----------------------------------------------------------------------------
3 # Copyright © 2009- The Spyder Development Team
5 # Licensed under the terms of the MIT License
6 # (see LICENSE.txt for details)
7 # -----------------------------------------------------------------------------
8 """Provides QtSql classes and functions."""
10 # Local imports
11 from . import PYQT5, PYSIDE2, PYQT4, PYSIDE, PythonQtError
13 if PYQT5:
14 from PyQt5.QtSql import *
15 elif PYSIDE2:
16 from PySide2.QtSql import *
17 elif PYQT4:
18 from PyQt4.QtSql import *
19 elif PYSIDE:
20 from PySide.QtSql import *
21 else:
22 raise PythonQtError('No Qt bindings could be found')
24 del PYQT4, PYQT5, PYSIDE, PYSIDE2