diff options
Diffstat (limited to 'ranger/ext/lazy_property.py')
-rw-r--r-- | ranger/ext/lazy_property.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ranger/ext/lazy_property.py b/ranger/ext/lazy_property.py index 4bdcda1e..43dc65af 100644 --- a/ranger/ext/lazy_property.py +++ b/ranger/ext/lazy_property.py @@ -1,7 +1,7 @@ # From http://blog.pythonisito.com/2008/08/lazy-descriptors.html -class lazy_property(object): +class lazy_property(object): # pylint: disable=invalid-name,too-few-public-methods """A @property-like decorator with lazy evaluation >>> class Foo: @@ -29,6 +29,7 @@ class lazy_property(object): obj.__dict__[self.__name__] = result return result + if __name__ == '__main__': import doctest doctest.testmod() |