Decorator for rruleset methods which may invalidate the cached length.
(f)
| 71 | |
| 72 | |
| 73 | def _invalidates_cache(f): |
| 74 | """ |
| 75 | Decorator for rruleset methods which may invalidate the |
| 76 | cached length. |
| 77 | """ |
| 78 | @wraps(f) |
| 79 | def inner_func(self, *args, **kwargs): |
| 80 | rv = f(self, *args, **kwargs) |
| 81 | self._invalidate_cache() |
| 82 | return rv |
| 83 | |
| 84 | return inner_func |
| 85 | |
| 86 | |
| 87 | class rrulebase: |
nothing calls this directly
no outgoing calls
no test coverage detected