]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
python: Port to Python3.
authorE.Smith <31170571+azlm8t@users.noreply.github.com>
Tue, 25 Sep 2018 11:53:46 +0000 (12:53 +0100)
committerperexg <perex@perex.cz>
Wed, 26 Sep 2018 15:31:44 +0000 (17:31 +0200)
Python 3 requires "Exception as e" instead of "Exception, e". This new
syntax is compatible with Python2.6+ and was introduced in PEP-3110
(Jan 2006).

support/htspmon

index 787f45c7bf9f92dd407c9c802672f45c3c73a46f..430827e1ffd8d54ed2103fd5cc52a632f159b173 100755 (executable)
@@ -79,7 +79,7 @@ try:
     log.info(msg, pretty=True)
 
 except KeyboardInterrupt: pass
-except Exception, e:
+except Exception as e:
   log.error(e)
   sys.exit(1)