google / emboss

Emboss is a tool for generating code that reads and writes binary data structures.
Apache License 2.0
68 stars 21 forks source link

Fix Python 3.11 inspect usage #77

Closed AnthonyDiGirolamo closed 1 year ago

AnthonyDiGirolamo commented 1 year ago

inspect.getargspec is no longer available in Python 3.11. Here are the docs as of 3.10: https://docs.python.org/3.10/library/inspect.html#inspect.getargspec

This switches to getfullargspec which is nearly a drop in replacement: https://docs.python.org/3.11/library/inspect.html#inspect.getfullargspec