zopefoundation / Products.PluggableAuthService

Pluggable Zope authentication / authorization framework
Other
9 stars 18 forks source link

Deperecation warning "formatargspec" #32

Closed icemac closed 5 years ago

icemac commented 5 years ago
/.../Products.PluggableAuthService-2.0b2-py3.7.egg/Products/PluggableAuthService/utils.py:265: DeprecationWarning: `formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directly
    callargs = inspect.formatargspec(formatvalue=lambda v: '', *spec)
/.../Products.PluggableAuthService-2.0b2-py3.7.egg/Products/PluggableAuthService/utils.py:253: DeprecationWarning: inspect.getargspec() is deprecated since Python 3.0, use inspect.signature() or inspect.getfullargspec()
    args, varargs, kwargs, defaults = inspect.getargspec(wrapped) 
/.../Products.PluggableAuthService-2.0b2-py3.7.egg/Products/PluggableAuthService/utils.py:264: DeprecationWarning: `formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directly
    argspec = inspect.formatargspec(formatvalue=lambda v: '=None', *spec)
dataflake commented 5 years ago

This was fixed in 73f68b025b8d11e99e3bf6ec68a6bf71d8466a7f - trying to follow the official recommendation using inspect.signature produces really messy code.