diff options
author | hut <hut@lavabit.com> | 2010-01-20 03:17:20 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-01-20 03:17:20 +0100 |
commit | 79f37c34e17f1e451e5b7bd74da0d022e0e3d7c5 (patch) | |
tree | edf0bce101c95b40270065e2af1af7ee4e02a023 /ranger | |
parent | 845bd407b461138abbdc890bd8e9043b0236b46f (diff) | |
download | ranger-79f37c34e17f1e451e5b7bd74da0d022e0e3d7c5.tar.gz |
keyapi: fixed Wrapper so that it works with pydoc
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/keyapi.py | 2 |
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 |