summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-01-23 02:04:29 +0100
committerhut <hut@lavabit.com>2010-01-23 02:04:29 +0100
commitcb1ed288bbef7038a82b283a9a57896cbe0b467a (patch)
tree349e14ee281a424461ec77a21d2f6ab28bc8264a
parentd46a05a856c417140e3fc2a9481fc67d6c8a66ba (diff)
downloadranger-cb1ed288bbef7038a82b283a9a57896cbe0b467a.tar.gz
fm: use "property" as a decorator for "executables"
-rw-r--r--ranger/fm.py5
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