#11684 closed defect (fixed)
Methods decorated with lazy are not included in ApiDocs — at Version 1
Reported by: | Ryan J Ollos | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | normal | Milestone: | 1.0.2 |
Component: | general | Version: | |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: |
Exposed the docstring for methods decorated with |
||
Internal Changes: |
Description
The following patch seems to fix the issue:
-
trac/util/__init__.py
diff --git a/trac/util/__init__.py b/trac/util/__init__.py index 13676d5..a31a147 100644
a b 20 20 from __future__ import with_statement 21 21 22 22 import errno 23 import functools 23 24 import inspect 24 25 from itertools import izip, tee 25 26 import locale … … class lazy(object): 1109 1110 1110 1111 def __init__(self, fn): 1111 1112 self.fn = fn 1113 functools.update_wrapper(self, fn) 1112 1114 1113 1115 def __get__(self, instance, owner): 1114 1116 if instance is None:
Change History (1)
comment:1 by , 10 years ago
API Changes: | modified (diff) |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Also, previously we'd see:
Now:
Fixed in [12968], merged to trunk in [12969].