[[https://docs.python.org/3.6/library/inspect.html#inspect.getargspec|inspect.getargspec]] is going to be removed in Python 3.6 and we have at least two usages in pywikibot.tools.remove_last_args and pywikibot.api.Request.
|pywikibot/core : master||[FEAT] Add basic support for signature and replace getargspec|
|pywikibot/core : master||[FIX] Implement getargspec in tools|
|pywikibot/core : master||[FEAT] Test Python 3.5 on Travis|
But then future would be necessary for 2.7 too and that would break the policy to only require one package (which is requests) as only Python 3.3+ builds would work without them. I could make the method not part of our API (aka use an underscore) so that when we drop Python 2 support (or won't mind future) we could just remove my patch.
Anyway I'll look into future to implement it using that so that we are free to implement whatever we think is better.
@Ricordisamoa: Yes, I am able to read and actually linked to that doc. But before we had builds on Python 3.6 occurring it issued no deprecation warning even though it had been deprecated since 3.0. I actually checked with -Wall and didn't get any deprecation warning on 3.4.3.
While the deprecation warning is more of a problem for tests (because they might not expect it) it should be resolved as soon as possible (and sensible) anyway. For now we could wait on future to implement a backport and use that instead. We also only need few parts so we could implement a very lightweight implementation in the meantime.