about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-01-20 03:17:20 +0100
committerhut <hut@lavabit.com>2010-01-20 03:17:20 +0100
commit79f37c34e17f1e451e5b7bd74da0d022e0e3d7c5 (patch)
treeedf0bce101c95b40270065e2af1af7ee4e02a023
parent845bd407b461138abbdc890bd8e9043b0236b46f (diff)
downloadranger-79f37c34e17f1e451e5b7bd74da0d022e0e3d7c5.tar.gz
keyapi: fixed Wrapper so that it works with pydoc
-rw-r--r--ranger/keyapi.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ranger/keyapi.py b/ranger/keyapi.py
index 9cbe3612..95443b6d 100644
--- a/ranger/keyapi.py
+++ b/ranger/keyapi.py
@@ -50,6 +50,8 @@ class Wrapper(object):
 		self.__firstattr__ = firstattr
 
 	def __getattr__(self, attr):
+		if attr.startswith('_'):
+			raise AttributeError
 		def wrapper(*real_args, **real_keywords):
 			def function(command_argument):
 				args, kws = real_args, real_keywords