Skip to content

module 'inspect' has no attribute 'getargspec' in Python 3.11 #93

@s3v-

Description

@s3v-

Hi,

$> python3.11
Python 3.11.0+ (main, Nov  4 2022, 09:23:33) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from compyle.template import Template
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3/dist-packages/compyle/template.py", line 10, in <module>
    inspect, 'getfullargspec', inspect.getargspec
                               ^^^^^^^^^^^^^^^^^^
AttributeError: module 'inspect' has no attribute 'getargspec'. Did you mean: 'getargs'?
>>>

"getargspec" was deprecated since Python 3.0 and removed in Python 3.11.
I think is safe to remove default value as "getfullargspec" attribute is in all
Python 3 supported versions.

Kind Regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions