From a32045b6c4e042cfb96299981a68419e09579323 Mon Sep 17 00:00:00 2001 From: theuni Date: Wed, 20 Oct 2010 14:49:35 +0000 Subject: 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 --- tools/Linux/FEH.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tools/Linux') 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) -- cgit v1.2.3