forked from qt-creator/qt-creator
Squish: Improve Python2/Python3 compatibility
Change-Id: I49dc9ee2f4ef52900b403ed94f0c6cd5925239b6 Reviewed-by: Robert Löhning <robert.loehning@qt.io>
This commit is contained in:
@@ -23,7 +23,10 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
import __builtin__
|
||||
try:
|
||||
import __builtin__ # Python 2
|
||||
except ImportError:
|
||||
import builtins as __builtin__ # Python 3
|
||||
|
||||
# for easier re-usage (because Python hasn't an enum type)
|
||||
class Targets:
|
||||
|
||||
Reference in New Issue
Block a user