From 7938740bf3db8be02636561dd6e093ae7a54230a Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Fri, 23 Aug 2019 23:21:05 +0200 Subject: [PATCH] tools: make tools python2 compatible This allows the tools to be used for Python 2 and Python 3. --- tools/gen-device-avr.py | 4 +++- tools/gen-device-svd.py | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/gen-device-avr.py b/tools/gen-device-avr.py index 7e32808a..becd4cd8 100755 --- a/tools/gen-device-avr.py +++ b/tools/gen-device-avr.py @@ -1,4 +1,6 @@ -#!/usr/bin/env python3 +#!/usr/bin/env python + +from __future__ import print_function import sys import os diff --git a/tools/gen-device-svd.py b/tools/gen-device-svd.py index fc9e3f16..990b2080 100755 --- a/tools/gen-device-svd.py +++ b/tools/gen-device-svd.py @@ -1,4 +1,6 @@ -#!/usr/bin/env python3 +#!/usr/bin/env python + +from __future__ import print_function import sys import os