chipx86 got a fish trophy!
Fix argument parsing on Python 3.11.
Review Request #12521 — Created Aug. 9, 2022 and submitted — Latest diff uploaded
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.