[vlc-commits] commit: python-vlc: use "unused" variable name in callback definition ( Olivier Aubert )

git at videolan.org git at videolan.org
Tue Nov 16 18:26:35 CET 2010


vlc/python | branch: master | Olivier Aubert <olivier.aubert at liris.cnrs.fr> | Tue Nov 16 18:18:09 2010 +0100| [7da6364ba9b3675e30cb88af14bb618e4ab2b196] | committer: Olivier Aubert 

python-vlc: use "unused" variable name in callback definition

> http://git.videolan.org/gitweb.cgi/vlc/python.git/?a=commit;h=7da6364ba9b3675e30cb88af14bb618e4ab2b196
---

 override.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/override.py b/override.py
index 7456eba..f444973 100644
--- a/override.py
+++ b/override.py
@@ -274,7 +274,7 @@ class EventManager:
         if self._callback_handler is None:
             _called_from_ctypes = ctypes.CFUNCTYPE(None, ctypes.POINTER(Event), ctypes.c_void_p)
             @_called_from_ctypes
-            def _callback_handler(event, data):
+            def _callback_handler(event, unused):
                 """(INTERNAL) handle callback call from ctypes.
 
                 Note: we cannot simply make this an instance method of



More information about the vlc-commits mailing list