pba
pba copied to clipboard
inspect.getargspec() deprecated in Python 3
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 ofgetfullargspec()
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