From d580d73be57d3cbe46be874c9d9e0219af70eab2 Mon Sep 17 00:00:00 2001 From: Patrick Totzke Date: Fri, 16 Dec 2016 14:40:12 +0000 Subject: more pythonic names in doc-scripts https://www.quantifiedcode.com/app/issue_class/AiJMd9EB --- docs/source/api/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/source/api') diff --git a/docs/source/api/conf.py b/docs/source/api/conf.py index 0c36a73f..348a8b6e 100644 --- a/docs/source/api/conf.py +++ b/docs/source/api/conf.py @@ -26,7 +26,7 @@ class Mock(object): return Mock() @classmethod - def __getattr__(self, name): + def __getattr__(cls, name): return Mock() if name not in ('__file__', '__path__') else '/dev/null' MOCK_MODULES = ['notmuch', 'notmuch.globals', -- cgit v1.2.3