Fix
Test for major Python version and use inspect.getargspec() or
inspect.getfullargspec() respectively to silence deprecation warnings in
Python 3
@@ -127,7 +127,10 @@ class BeetsPlugin(object):
value after the function returns). Also determines which params may not
be sent for backwards-compatibility.
"""
+ if six.PY2:
argspec = inspect.getargspec(func)
+ else:
+ argspec = inspect.getfullargspec(func)
@wraps(func)
def wrapper(*args, **kwargs):
