Fish Trophy

chipx86 got a fish trophy!

Fish Trophy

Fix argument parsing on Python 3.11.

Review Request #12521 — Created Aug. 9, 2022 and submitted

Information

RBTools
release-3.x

Reviewers

Python 3.11 removed support for inspect.getargspec(), which is needed
when we first parse command line arguments. This prevented RBTools from
running at all on Python 3.11.

We now use getfullargspec() if available, and fall back on
getargspec(). This also avoids warnings on earlier versions.

Successfully posted this change using RBTools on Python 3.11.

Summary ID
Fix argument parsing on Python 3.11.
Python 3.11 removed support for `inspect.getargspec()`, which is needed when we first parse command line arguments. This prevented RBTools from running at all on Python 3.11. We now use `getfullargspec()` if available, and fall back on `getargspec()`. This also avoids warnings on earlier versions.
b2db9b6ce84a5dae438ea54f21dd9e38bfcd829a
david
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to release-3.x (8fd7e89)