summaryrefslogtreecommitdiff
path: root/tortoisehg/hgqt/qsci.py
blob: 425e31c7ae519eeae01929eb9e258b89fad0a711 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# qsci.py - PyQt4/5 compatibility wrapper
#
# Copyright 2015 Yuya Nishihara <yuya@tcha.org>
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.

"""Thin compatibility wrapper for Qsci"""

from __future__ import absolute_import

from .qtcore import QT_API

if QT_API == 'PyQt4':
    from PyQt4.Qsci import *
elif QT_API == 'PyQt5':
    from PyQt5.Qsci import *
else:
    raise RuntimeError('unsupported Qt API: %s' % QT_API)