Refactor to drop dependency on decorator package #5654
Labels
accepted
contrib-easy
Easy dev difficulty for contribution
enhancement
New feature or request
medium
Description
We have a few decorators defined in
ietf/utils/decorator.py
that use the "decorator" package. This provides the@decorator
decorator and adecorate
method. The built-in Pythonfunctools.wraps()
method can fulfill the needs here without the additional dependency. As far as I can tell we're not making use of any of the features provided by the "decorator" package.The
@decorator
mechanism also seems to interfere with Django's@method_decorator
, which led to refactoring therequires_api_key
decorator already.Code of Conduct
The text was updated successfully, but these errors were encountered: