Fix simple_decorator and basictag not setting __module__.
Review Request #7736 — Created Oct. 25, 2015 and submitted
These decorators weren't setting
__module__, which, while mostly
harmless, did result in Sphinx filtering out any functions decorated by
these two decorators.We now use
update_wrapper()fromfunctools, which sets all the
attributes we need.
All Djblets and Review Board unit tests pass.
| Description | From | Last Updated |
|---|---|---|
|
For the sake of consistency, and assuming that there should be no blank lines between update_wrapper() and the return statement, … |
PH phngo |
Tool: PEP8 Style Checker Processed Files: djblets/util/decorators.py Tool: Pyflakes Processed Files: djblets/util/decorators.py