From 0f80f2f52c4bd1e9ce54098c25a54d2a71c098df Mon Sep 17 00:00:00 2001 From: Mayeul Cantan Date: Fri, 24 Aug 2018 09:18:36 +0200 Subject: [PATCH] Import print_function from __future__ for python compatibility This alters the behaviour of python2's print statement to be compatible with python3's print function. While not strictly necessary for now, this might help future compatibility. Thanks to Seppo Yli-Olli (@nanonyme) for suggesting this. --- lsteamclient/gen_wrapper.py | 2 ++ proton | 2 ++ vrclient_x64/gen_wrapper.py | 2 ++ 3 files changed, 6 insertions(+) diff --git a/lsteamclient/gen_wrapper.py b/lsteamclient/gen_wrapper.py index 010689f9..4451d3de 100755 --- a/lsteamclient/gen_wrapper.py +++ b/lsteamclient/gen_wrapper.py @@ -3,6 +3,8 @@ #NOTE: If you make modifications here, consider whether they should #be duplicated in ../vrclient/gen_wrapper.py +from __future__ import print_function + import pprint import sys import clang.cindex diff --git a/proton b/proton index c9355372..da6501d3 100755 --- a/proton +++ b/proton @@ -2,6 +2,8 @@ #script to launch Wine with the correct environment +from __future__ import print_function + import filecmp import json import os diff --git a/vrclient_x64/gen_wrapper.py b/vrclient_x64/gen_wrapper.py index ad28fb4d..13709599 100755 --- a/vrclient_x64/gen_wrapper.py +++ b/vrclient_x64/gen_wrapper.py @@ -3,6 +3,8 @@ #NOTE: If you make modifications here, consider whether they should #be duplicated in ../lsteamclient/gen_wrapper.py +from __future__ import print_function + import pprint import sys import clang.cindex