From 0e81802dd9240e9159410c35328ab288e7e8487a Mon Sep 17 00:00:00 2001 From: Christian Becker-Asano Date: Mon, 9 Feb 2015 16:27:43 +0100 Subject: [PATCH] the comma version of the except statement is deprecated In python 3.3.3 a syntax error is produced by the except statement with a comma. Solution: use "as" instead. (This also causes trouble in pip install command under 3.3.3, see also stackoverflow.com/questions/20517785/python-except-oserror-e-no-longer-working-in-3-3-3) --- ovrsdk/windows/wrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ovrsdk/windows/wrapper.py b/ovrsdk/windows/wrapper.py index b85b4e9..a62c7f4 100644 --- a/ovrsdk/windows/wrapper.py +++ b/ovrsdk/windows/wrapper.py @@ -370,7 +370,7 @@ def load(self,path): return ctypes.CDLL(path, ctypes.RTLD_GLOBAL) else: return ctypes.cdll.LoadLibrary(path) - except OSError,e: + except OSError as e: raise ImportError(e) def getpaths(self,libname):