Find removed inspect.getargspec()

Proprietary

inspect.getargspec() was removed in Python 3.11. inspect.getfullargspec() returns seven fields where getargspec() returned four, and calls the keywords field varkw, so each call is marked for a manual change. A reference to the function that is not a call is not marked.

org.openrewrite.python.migrate.FindInspectGetargspec
mod run . --recipe=org.openrewrite.python.migrate.FindInspectGetargspec

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.