dist/tools/compile_test: use Python3
This commit is contained in:
parent
b8e2d14164
commit
a5043540f4
11
dist/tools/compile_test/compile_test.py
vendored
11
dist/tools/compile_test/compile_test.py
vendored
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python3
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
# Copyright (C) 2014 René Kijewski <rene.kijewski@fu-berlin.de>
|
# Copyright (C) 2014 René Kijewski <rene.kijewski@fu-berlin.de>
|
||||||
@ -19,21 +19,12 @@
|
|||||||
# License along with this library; if not, write to the Free Software
|
# License along with this library; if not, write to the Free Software
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
|
||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
from itertools import groupby
|
from itertools import groupby
|
||||||
from os import devnull, environ
|
from os import devnull, environ
|
||||||
from os.path import abspath, dirname, isfile, join
|
from os.path import abspath, dirname, isfile, join
|
||||||
from subprocess import CalledProcessError, check_call, check_output, PIPE, Popen
|
from subprocess import CalledProcessError, check_call, check_output, PIPE, Popen
|
||||||
from sys import argv, exit, stdout
|
from sys import argv, exit, stdout
|
||||||
|
|
||||||
|
|
||||||
try:
|
|
||||||
# Python 2.x
|
|
||||||
from StringIO import StringIO
|
|
||||||
except ImportError:
|
|
||||||
# Python 3.x
|
|
||||||
from io import StringIO
|
from io import StringIO
|
||||||
from itertools import tee
|
from itertools import tee
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user