Message6015
https://sourceforge.net/p/roundup/code/ci/36630a062fb5 introduced a check
that uses inspect.getargspec(). In our instance we were using a callable
instance for a check ( https://hg.python.org/tracker/python-
dev/file/545a7d7ef9e4/schema.py#l251 ) and while updating roundup we got
the failure "TypeError: <__builtin__.may_view_spam instance at
0x7f2ac7629bd8> is not a Python function" since getargspec() only works
with Python functions and not arbitrary callables.
We fixed this on our end by replacing the callable class with a function
that uses a closure to store the klassname, but the fact that arbitrary
callables are no longer supported is technically a backward incompatible
change that you might want to fix in Roundup.
FWIW getargspec(inst.__call__) works, but there might be better way to
fix it. |
|
Date |
User |
Action |
Args |
2017-09-14 20:35:13 | ezio.melotti | set | recipients:
+ ezio.melotti |
2017-09-14 20:35:13 | ezio.melotti | set | messageid: <1505421313.77.0.0767788137936.issue2550952@psf.upfronthosting.co.za> |
2017-09-14 20:35:13 | ezio.melotti | link | issue2550952 messages |
2017-09-14 20:35:12 | ezio.melotti | create | |
|