diff options
| author | David Bremner <david@tethera.net> | 2019-02-17 17:08:12 -0400 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2019-02-17 17:08:12 -0400 |
| commit | c09aad479464965f5296438eeb3afba0ec64d13b (patch) | |
| tree | 2a8cb320950f05081063c6eccd99857ac280c243 /bindings/python/docs/source | |
| parent | 3d0fd40eb0eca54fd05460203ae754c63f633d69 (diff) | |
| parent | af0ff260cc1cb1c8ff0e5e353fd92ca4a1f2bc3f (diff) | |
Merge tag '0.28.2'
notmuch 0.28.2 release
Diffstat (limited to 'bindings/python/docs/source')
| -rw-r--r-- | bindings/python/docs/source/conf.py | 13 | ||||
| -rw-r--r-- | bindings/python/docs/source/filesystem.rst | 2 | ||||
| -rw-r--r-- | bindings/python/docs/source/threads.rst | 2 |
3 files changed, 4 insertions, 13 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', ] diff --git a/bindings/python/docs/source/filesystem.rst b/bindings/python/docs/source/filesystem.rst index 558c93de..13fe1194 100644 --- a/bindings/python/docs/source/filesystem.rst +++ b/bindings/python/docs/source/filesystem.rst @@ -15,7 +15,7 @@ Files and directories instead. :class:`Directory` -- A directory entry in the database ------------------------------------------------------- +------------------------------------------------------- .. autoclass:: Directory diff --git a/bindings/python/docs/source/threads.rst b/bindings/python/docs/source/threads.rst index 4324ac82..46ce5be5 100644 --- a/bindings/python/docs/source/threads.rst +++ b/bindings/python/docs/source/threads.rst @@ -11,4 +11,4 @@ iterator and broke list(Threads()). Use `len(list(msgs))` instead. -.. automethod:: __str__ + .. automethod:: __str__ |
