diff --git a/src/liblo.pyx b/src/liblo.pyx index a2af2e9..ee1f5c9 100644 --- a/src/liblo.pyx +++ b/src/liblo.pyx @@ -258,9 +258,9 @@ cdef int _msg_callback(const_char *path, const_char *types, lo_arg **argv, cb.user_data) # call function - if _inspect.getargspec(func)[1] == None: + if _inspect.getfullargspec(func)[1] == None: # determine number of arguments to call the function with - n = len(_inspect.getargspec(func)[0]) + n = len(_inspect.getfullargspec(func)[0]) if _inspect.ismethod(func): n -= 1 # self doesn't count r = cb.func(*func_args[0:n])