pba icon indicating copy to clipboard operation
pba copied to clipboard

inspect.getargspec() deprecated in Python 3

Open MichaelMcAleer opened this issue 4 years ago • 0 comments

Hi PBA Team,

Spotted this warning in my IDE when looking through your code:

https://github.com/arcelien/pba/blob/a9cc308d936dee488aab7e3582ab7a47167b587a/pba/augmentation_transforms.py#L224

getargspec() has been deprecated since Python 3.0 in favour of getfullargspec()

It may be worthwhile adding a try/except block for this import because getfullargspec() isn't available in Python 2.x

https://docs.python.org/2.7/library/inspect.html#inspect.getargspec https://docs.python.org/3.7/library/inspect.html#inspect.getargspec https://docs.python.org/3.7/library/inspect.html#inspect.getfullargspec

Kind regards, Michael

MichaelMcAleer avatar Mar 15 '20 12:03 MichaelMcAleer