make-github-pseudonymous-again / sak

:sake: Swiss Army Knife in Python 3
GNU Affero General Public License v3.0
3 stars 0 forks source link

inspect module doesn't work with constructors in python3.2 #63

Closed make-github-pseudonymous-again closed 10 years ago

make-github-pseudonymous-again commented 10 years ago

Traceback (most recent call last): File "/usr/local/bin/$", line 64, in try : main(sys.argv[1:]) File "/usr/local/bin/$", line 12, in main action(_args, *_kwargs) File "/home/aureooms/dev/sake/sake/npm.py", line 43, in release version = lib.npm.setversion(version) File "/home/aureooms/dev/sake/lib/npm.py", line 51, in setversion olds = readpackagefiles() File "/home/aureooms/dev/sake/lib/npm.py", line 28, in readpackagefiles with lib.json.proxy(pm, 'r', default = {}) as conf: File "/home/aureooms/dev/sake/lib/json.py", line 35, in enter self.load() File "/home/aureooms/dev/sake/lib/json.py", line 26, in load kwargs = lib.kwargs.filter(self.kwargs, json.JSONDecoder) File "/home/aureooms/dev/sake/lib/kwargs.py", line 7, in filter args = inspect.getargspec(fn).args File "/usr/lib/python3.2/inspect.py", line 807, in getargspec getfullargspec(func) File "/usr/lib/python3.2/inspect.py", line 834, in getfullargspec raise TypeError('{!r} is not a Python function'.format(func)) TypeError: <class 'json.decoder.JSONDecoder'> is not a Python function