warner / foolscap

remote object-messaging for Python+Twisted
http://foolscap.lothar.com/trac
MIT License
51 stars 40 forks source link

AttributeError: module 'inspect' has no attribute 'getargspec' #93

Closed merkys closed 1 year ago

merkys commented 1 year ago

Foolscap fails its tests with Python 3.11:

  File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/foolscap/remoteinterface.py", line 191, in initFromMethod
    names, _, _, typeList = inspect.getargspec(method)
                            ^^^^^^^^^^^^^^^^^^
AttributeError: module 'inspect' has no attribute 'getargspec'

It seems inspect.getargspec has been deprecated for some time and finally removed in Python 3.11.