diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2019-05-27 18:31:47 +0100 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2019-05-27 18:31:47 +0100 |
commit | dff018e7cb6c885433e1e91fe0e5162e1e329301 (patch) | |
tree | 134e5229f87ae6e813368057260c404d93e4e6aa /alot/utils | |
parent | 7f800370151466fb07db1eba4b3b343cbd03561c (diff) |
remove old new-style classes syntax
Python3 only supports "new-style" classes (those extending object),
and we don't need to explicitly inherit from this root class any more.
See http://pylint-messages.wikidot.com/messages:c1001
Diffstat (limited to 'alot/utils')
-rw-r--r-- | alot/utils/cached_property.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alot/utils/cached_property.py b/alot/utils/cached_property.py index 680cd6f4..3ad66413 100644 --- a/alot/utils/cached_property.py +++ b/alot/utils/cached_property.py @@ -34,13 +34,13 @@ _missing = object() -class cached_property(object): +class cached_property: """A decorator that converts a function into a lazy property. The function wrapped is called the first time to retrieve the result and then that calculated result is used the next time you access the value:: - class Foo(object): + class Foo: @cached_property def foo(self): |