Kronuz / pyScss

pyScss, a Scss compiler for Python
MIT License
582 stars 140 forks source link

Fix DeprecationWarning on inspect.getargspec in python3 #416

Closed amotoki closed 2 years ago

amotoki commented 3 years ago

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().

coveralls commented 3 years ago

Coverage Status

Coverage increased (+0.03%) to 66.845% when pulling 0d447372c7a04f1cab800fa4b5a388c6d0b7d49e on amotoki:fix-getargspec-warning into 6bf001ee6ac70ffb1bbcf670c4450e233bec6b7c on Kronuz:master.