aboutsummaryrefslogtreecommitdiff
path: root/tools/Linux
diff options
context:
space:
mode:
authortheuni <theuni@svn>2010-10-20 14:49:35 +0000
committertheuni <theuni@svn>2010-10-20 14:49:35 +0000
commita32045b6c4e042cfb96299981a68419e09579323 (patch)
treee5aca3b79a257192bc134dbe6cc7ce2ac807c8db /tools/Linux
parent58ee03db8cbc7e80f3f1cea05acab2223b7d33ec (diff)
Python 3 forces print to be a function. It was supported in older versions but not enforced. Support both. Arch Linux was hitting this.
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@34877 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'tools/Linux')
-rwxr-xr-xtools/Linux/FEH.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/Linux/FEH.py b/tools/Linux/FEH.py
index c4c227b74a..f01e45f161 100755
--- a/tools/Linux/FEH.py
+++ b/tools/Linux/FEH.py
@@ -32,7 +32,10 @@ def error(errorLine):
elif Output == "--error-output=SDL":
createSDL(errorLine)
else:
- print errorLine
+ try:
+ print(errorLine)
+ except:
+ print errorLine
exit(1)