mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 05:32:45 +01:00
Merge pull request #14464 from benpicco/python3
Convert remaining Python2 users to Python3
This commit is contained in:
commit
d665546d6f
@ -51,7 +51,7 @@ main() {
|
||||
local output_dir
|
||||
|
||||
# No 'realpath' in mac by default…
|
||||
output_dir=$(python -c 'import os.path; print(os.path.abspath("'"$1"'"))')
|
||||
output_dir=$(python3 -c 'import os.path; print(os.path.abspath("'"$1"'"))')
|
||||
|
||||
for app in $(applications)
|
||||
do
|
||||
|
13
dist/tools/compile_test/compile_test.py
vendored
13
dist/tools/compile_test/compile_test.py
vendored
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright (C) 2014 René Kijewski <rene.kijewski@fu-berlin.de>
|
||||
@ -19,22 +19,13 @@
|
||||
# License along with this library; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
from collections import defaultdict
|
||||
from itertools import groupby
|
||||
from os import devnull, environ
|
||||
from os.path import abspath, dirname, isfile, join
|
||||
from subprocess import CalledProcessError, check_call, check_output, PIPE, Popen
|
||||
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
|
||||
|
||||
|
||||
|
3
dist/tools/esptool/gen_esp32part.py
vendored
3
dist/tools/esptool/gen_esp32part.py
vendored
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
#
|
||||
# ESP32 partition table generation tool
|
||||
#
|
||||
@ -20,7 +20,6 @@
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
from __future__ import print_function, division
|
||||
import argparse
|
||||
import os
|
||||
import re
|
||||
|
2
dist/tools/pyterm/setup.py
vendored
2
dist/tools/pyterm/setup.py
vendored
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
|
||||
try:
|
||||
from setuptools import setup
|
||||
|
Loading…
Reference in New Issue
Block a user