Decorator for rruleset methods which may invalidate the cached length.
(f)
| 78 | |
| 79 | |
| 80 | def _invalidates_cache(f): |
| 81 | """ |
| 82 | Decorator for rruleset methods which may invalidate the |
| 83 | cached length. |
| 84 | """ |
| 85 | @wraps(f) |
| 86 | def inner_func(self, *args, **kwargs): |
| 87 | rv = f(self, *args, **kwargs) |
| 88 | self._invalidate_cache() |
| 89 | return rv |
| 90 | |
| 91 | return inner_func |
| 92 | |
| 93 | |
| 94 | class rrulebase(object): |
nothing calls this directly
no outgoing calls
no test coverage detected