Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Bundle decorator.py and fix decorators #91
As discussed in #77, this PR bundles (to avoid dependencies) the decorator.py module and uses it to fix the behavior of prometheus_client's decorators.
The efficacy can be verified by using example view from the README and then doing a:
>>> from inspect import getargspec >>> getargspec(process_request) ArgSpec(args=['t'], varargs=None, keywords=None, defaults=None)
Without this patch, you get:
ArgSpec(args=, varargs='args', keywords='kwargs', defaults=None)
Let me now what you think.
Also pinging @micheles out of courtesy and to ensure he doesn’t feel we violate his copyright.
Yes, no problems on my part, the decorator module is a single file just to
On Wed, Jul 20, 2016 at 3:17 PM, Hynek Schlawack email@example.com