[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#50996: 29.0.50; formatargspec is deprecated since python 3.5
From: |
Lars Ingebrigtsen |
Subject: |
bug#50996: 29.0.50; formatargspec is deprecated since python 3.5 |
Date: |
Mon, 04 Oct 2021 11:43:35 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Carlos Pita <carlosjosepita@gmail.com> writes:
> This will do it:
>
> if hasattr(inspect, 'signature'):
> args = str(inspect.signature(target))
> else:
> args = inspect.formatargspec(*argspec_function(target))
Thanks; applied to Emacs 29.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no