gregmuellegger / django-autofixture

Can create auto-generated test data.
BSD 3-Clause "New" or "Revised" License
460 stars 118 forks source link

Use inspect.signature if available #86

Closed nicktimko closed 8 years ago

nicktimko commented 8 years ago

Loud deprecation warnings seem to have been turned on in Python 3.5 leading to annoyingness. I added a little shim function to get the argument names, either from inspect.getargspec or inspect.signature, as available.

https://docs.python.org/3/library/inspect.html#inspect.getargspec

gregmuellegger commented 8 years ago

:+1: Good work!

gregmuellegger commented 8 years ago

Cheers, your patch is in the new release: https://pypi.python.org/pypi/django-autofixture/0.12.1