eric5.py

branch
Py2 comp.
changeset 3145
a9de05d4a22f
parent 3142
55030c09e142
child 3161
06f57a834adf
child 3209
c5432abceb25
equal deleted inserted replaced
3144:bb63e24383e4 3145:a9de05d4a22f
9 9
10 This is the main Python script that performs the necessary initialization 10 This is the main Python script that performs the necessary initialization
11 of the IDE and starts the Qt event loop. 11 of the IDE and starts the Qt event loop.
12 """ 12 """
13 13
14 from __future__ import unicode_literals # __IGNORE_WARNING__ 14 from __future__ import unicode_literals
15 15
16 try: # Only for Py2 16 try: # Only for Py2
17 import sip 17 import sip
18 sip.setapi('QString', 2) 18 sip.setapi('QString', 2)
19 sip.setapi('QVariant', 2) 19 sip.setapi('QVariant', 2)
20 sip.setapi('QTextStream', 2) 20 sip.setapi('QTextStream', 2)
21 import StringIO as io 21 import StringIO as io
22 import Utilities.compatibility_fixes # __IGNORE_WARNING__ 22 import Utilities.compatibility_fixes # __IGNORE_WARNING__
23 except (ImportError): 23 except (ImportError):
24 import io # __IGNORE_WARNING__ 24 import io # __IGNORE_WARNING__
25 25

eric ide

mercurial