diff options
author | hut <hut@lavabit.com> | 2010-01-23 02:04:29 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-01-23 02:04:29 +0100 |
commit | cb1ed288bbef7038a82b283a9a57896cbe0b467a (patch) | |
tree | 349e14ee281a424461ec77a21d2f6ab28bc8264a /ranger | |
parent | d46a05a856c417140e3fc2a9481fc67d6c8a66ba (diff) | |
download | ranger-cb1ed288bbef7038a82b283a9a57896cbe0b467a.tar.gz |
fm: use "property" as a decorator for "executables"
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/fm.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ranger/fm.py b/ranger/fm.py index 7993a207..5e8faa6b 100644 --- a/ranger/fm.py +++ b/ranger/fm.py @@ -43,13 +43,12 @@ class FM(Actions): from ranger.shared import FileManagerAware FileManagerAware.fm = self - def get_executables(self): + @property + def executables(self): if self._executables is None: self._executables = get_executables() return self._executables - executables = property(get_executables) - def initialize(self): """If ui/bookmarks are None, they will be initialized here.""" from ranger.fsobject.directory import Directory |