summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorKriskras99 <Kriskras99@users.noreply.github.com>2017-09-21 23:42:57 +0200
committerJustin Moore <DrChat@users.noreply.github.com>2017-09-21 16:42:57 -0500
commit882f01533d3932dfa7cda259882f3df75db97391 (patch)
tree1f23613fa9fcbc31828bc462aae03a62f0b7ac80 /tools
parent2a920237dd7bcd4a5408436ed428cc7e6254bcbb (diff)
Python 3 support (#755)
* Python 3 support * Fix import_vs_environment in xenia-build * Drop support for Python 2 * Fix CIs and xb.bat * Require Python3.4+ because of Ubuntu Trusty * popen.communicate returns bytes instead of string * Useful info in travis * universal_newlines should be True * Changed shebang to python 3 * Python 3 shebang fix * Clang python 3 shebang fix
Diffstat (limited to 'tools')
-rw-r--r--tools/build/premake2
-rw-r--r--tools/diff.py6
-rw-r--r--tools/gpu-trace-diff2
-rw-r--r--tools/ppc-table-gen2
4 files changed, 8 insertions, 4 deletions
diff --git a/tools/build/premake b/tools/build/premake
index b1d644b3e..aa6ae27ad 100644
--- a/tools/build/premake
+++ b/tools/build/premake
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
# Copyright 2015 Ben Vanik. All Rights Reserved.
diff --git a/tools/diff.py b/tools/diff.py
index 9770e341b..29bc1ff33 100644
--- a/tools/diff.py
+++ b/tools/diff.py
@@ -1,3 +1,7 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+"""python diff.py file1 file2 diff"""
+
import difflib
import sys
@@ -5,4 +9,4 @@ diff = difflib.unified_diff(
open(sys.argv[1]).readlines(),
open(sys.argv[2]).readlines())
with open(sys.argv[3], 'w') as f:
- f.write(''.join(diff))
+ f.write(''.join(diff))
diff --git a/tools/gpu-trace-diff b/tools/gpu-trace-diff
index ca834d853..1098aa671 100644
--- a/tools/gpu-trace-diff
+++ b/tools/gpu-trace-diff
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
# Copyright 2015 Ben Vanik. All Rights Reserved.
diff --git a/tools/ppc-table-gen b/tools/ppc-table-gen
index b771dd1e3..6afb56325 100644
--- a/tools/ppc-table-gen
+++ b/tools/ppc-table-gen
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
# Copyright 2015 Ben Vanik & shuffle2. All Rights Reserved.