diff options
| author | David Bremner <bremner@debian.org> | 2019-02-17 07:30:33 -0400 |
|---|---|---|
| committer | David Bremner <bremner@debian.org> | 2019-02-17 07:30:33 -0400 |
| commit | 44862764d27d29fbfb9ded12b1112abe104fb7e1 (patch) | |
| tree | f26a901f6e28185d60200c9111de30e1c15b4996 /bindings/python/docs/source/conf.py | |
| parent | 32fb3c420a408ccfd20301f0c527c4259bf721cc (diff) | |
| parent | c3a683299d4c27d6eadaacf4fb516f73a6c69fc3 (diff) | |
Record notmuch (0.28.2-1) in archive suite sid
Diffstat (limited to 'bindings/python/docs/source/conf.py')
| -rw-r--r-- | bindings/python/docs/source/conf.py | 13 |
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', ] |
