aboutsummaryrefslogtreecommitdiff
path: root/bindings/python/docs/source/conf.py
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2019-02-17 17:08:12 -0400
committerDavid Bremner <david@tethera.net>2019-02-17 17:08:12 -0400
commitc09aad479464965f5296438eeb3afba0ec64d13b (patch)
tree2a8cb320950f05081063c6eccd99857ac280c243 /bindings/python/docs/source/conf.py
parent3d0fd40eb0eca54fd05460203ae754c63f633d69 (diff)
parentaf0ff260cc1cb1c8ff0e5e353fd92ca4a1f2bc3f (diff)
Merge tag '0.28.2'
notmuch 0.28.2 release
Diffstat (limited to 'bindings/python/docs/source/conf.py')
-rw-r--r--bindings/python/docs/source/conf.py13
1 files changed, 2 insertions, 11 deletions
diff --git a/bindings/python/docs/source/conf.py b/bindings/python/docs/source/conf.py
index 5b901c4e..8b43c5ca 100644
--- a/bindings/python/docs/source/conf.py
+++ b/bindings/python/docs/source/conf.py
@@ -13,22 +13,13 @@
import sys, os
+from unittest.mock import Mock
+
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
sys.path.insert(0,os.path.abspath('../..'))
-class Mock(object):
- def __init__(self, *args, **kwargs):
- pass
-
- def __call__(self, *args, **kwargs):
- return Mock()
-
- @classmethod
- def __getattr__(self, name):
- return Mock() if name not in ('__file__', '__path__') else '/dev/null'
-
MOCK_MODULES = [
'ctypes',
]