]> git.notmuchmail.org Git - notmuch/blobdiff - bindings/python/docs/source/conf.py
emacs: Add new option notmuch-search-hide-excluded
[notmuch] / bindings / python / docs / source / conf.py
index 5107a96ea2f4c32769bcca760072300a50113ea4..8b43c5ca3f9f1d019c49bf2ac3146186e14c828a 100644 (file)
 
 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',
 ]
@@ -215,4 +206,4 @@ latex_documents = [
 
 
 # Example configuration for intersphinx: refer to the Python standard library.
-intersphinx_mapping = {'http://docs.python.org/': None}
+intersphinx_mapping = {'https://docs.python.org/': None}