about summary refs log tree commit diff stats
path: root/ranger/applications.py
diff options
context:
space:
mode:
Diffstat (limited to 'ranger/applications.py')
-rw-r--r--ranger/applications.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ranger/applications.py b/ranger/applications.py
index 85dc50f5..39601e0e 100644
--- a/ranger/applications.py
+++ b/ranger/applications.py
@@ -2,21 +2,25 @@ ALLOWED_FLAGS = 'sdpSDP'
 
 class Applications(object):
 	def get(self, app):
+		"""Looks for an application, returns app_default if it doesn't exist"""
 		try:
 			return getattr(self, 'app_' + app)
 		except AttributeError:
 			return self.app_default
 
 	def has(self, app):
+		"""Returns whether an application is defined"""
 		return hasattr(self, 'app_' + app)
 
 	def all(self):
+		"""Returns a list with all application functions"""
 		return [x for x in self.__dict__ if x.startswith('app_')]
 
 import os
 null = open(os.devnull, 'a')
 
 def run(*args, **kw):
+	"""Run files with the specified parameters"""
 	from subprocess import Popen
 	from subprocess import PIPE
 	from ranger.ext.waitpid_no_intr import waitpid_no_intr