Skip to content
Snippets Groups Projects
  • Thomas Woerner's avatar
    07b056ad
    Provide own getargspec for roles and modules with Python 3.11 · 07b056ad
    Thomas Woerner authored
    Python 3.11 dropped compat inspect.getargspec. As the roles and modules
    need to support Python2 and Python3, the code for getargspec has been
    copied from Python 3.10 and is added as a fallback as soon as getargspec
    can not be imported from inspect. The copied getargspec is using
    getfullargspec internally.
    
    Fixes: #855 (Python's inspect.getargspec was removed in version 3.11)
    07b056ad
    History
    Provide own getargspec for roles and modules with Python 3.11
    Thomas Woerner authored
    Python 3.11 dropped compat inspect.getargspec. As the roles and modules
    need to support Python2 and Python3, the code for getargspec has been
    copied from Python 3.10 and is added as a fallback as soon as getargspec
    can not be imported from inspect. The copied getargspec is using
    getfullargspec internally.
    
    Fixes: #855 (Python's inspect.getargspec was removed in version 3.11)