1 diff -ruN a/src/liblo.pyx b/src/liblo.pyx
2 --- a/src/liblo.pyx 2015-04-14 09:02:22.000000000 +0200
3 +++ b/src/liblo.pyx 2023-04-06 19:51:56.042679208 +0200
8 - if _inspect.getargspec(func)[1] == None:
9 + if _inspect.getfullargspec(func)[1] == None:
10 # determine number of arguments to call the function with
11 - n = len(_inspect.getargspec(func)[0])
12 + n = len(_inspect.getfullargspec(func)[0])
13 if _inspect.ismethod(func):
14 n -= 1 # self doesn't count
15 r = cb.func(*func_args[0:n])