inspect.getargspec() is deprecated in python3 and the usage of
inspect.signature() or inspect.getfullargspec() is recommended.
The only different between getargspec and getfullargspec is
that "keywords" attribute in getargspec() return value corresponds
to "varkw" attribute in case of getfullargspec().
This commit changes the code to try getfullargspec() first and
then fallback to getargspec().
Coverage increased (+0.03%) to 66.845% when pulling 0d447372c7a04f1cab800fa4b5a388c6d0b7d49e on amotoki:fix-getargspec-warning into 6bf001ee6ac70ffb1bbcf670c4450e233bec6b7c on Kronuz:master.
inspect.getargspec() is deprecated in python3 and the usage of inspect.signature() or inspect.getfullargspec() is recommended. The only different between getargspec and getfullargspec is that "keywords" attribute in getargspec() return value corresponds to "varkw" attribute in case of getfullargspec(). This commit changes the code to try getfullargspec() first and then fallback to getargspec().