diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2016-12-16 14:40:12 +0000 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2016-12-16 14:40:53 +0000 |
commit | d580d73be57d3cbe46be874c9d9e0219af70eab2 (patch) | |
tree | a9d31f0f4b31a99d1c706f64211310e03e98552c /docs | |
parent | 77b53c1838e74c7b7aa8ba3c42eca3d9cec5ae6b (diff) |
more pythonic names in doc-scripts
https://www.quantifiedcode.com/app/issue_class/AiJMd9EB
Diffstat (limited to 'docs')
-rw-r--r-- | docs/source/api/conf.py | 2 | ||||
-rw-r--r-- | docs/source/conf.py | 2 |
2 files changed, 2 insertions, 2 deletions
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', diff --git a/docs/source/conf.py b/docs/source/conf.py index 2b544f23..a2751b70 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -16,7 +16,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' class MockModule(object): |