diff --git a/powerline/lint/inspect.py b/powerline/lint/inspect.py index 58d0dc05..575b4794 100644 --- a/powerline/lint/inspect.py +++ b/powerline/lint/inspect.py @@ -31,8 +31,8 @@ def getconfigargspec(obj): if len(arg) > 1: defaults.append(arg[1]) - requires_segment_info = getattr(obj, 'powerline_requires_segment_info', False) - requires_filesystem_watcher = getattr(obj, 'powerline_requires_filesystem_watcher', False) + requires_segment_info = hasattr(obj, 'powerline_requires_segment_info') + requires_filesystem_watcher = hasattr(obj, 'powerline_requires_filesystem_watcher') for name, method in argspecobjs: argspec = getargspec(method)