Switch a use of inspect.getargspec to func_accepts_kwargs

Review Request #12030 — Created Feb. 3, 2022 and discarded — Latest diff uploaded

Information

Review Board
master

Reviewers

We had a place that was using the old getargspec method just to
determine if a method accepted **kwargs. Django has a helper for just
this purpose, so we should switch to it.

Ran unit tests.

Diff Revision 1 (Latest)

Commits

First Last Summary ID Author
Switch a use of inspect.getargspec to func_accepts_kwargs
We had a place that was using the old `getargspec` method just to determine if a method accepted `**kwargs`. Django has a helper for just this purpose, so we should switch to it. Testing Done: Ran unit tests.
e45b18073bc25c9182ad316414a7dac7bd0b5733 David Trowbridge
reviewboard/admin/forms/search_settings.py
Loading...