From dc6e93541b107df0c02fc9257a9eecfcc18b7dc7 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Thu, 20 Sep 2018 11:45:47 +0100 Subject: [PATCH] [Docs] Fix mocking external modules With move to GTK3 needed to update the mocking of external modules. There is a new autodoc option `autodoc_mock_imports` so use this instead of the custom mock class. There are some build warnings output using autodoc mock: TypeError: unsupported operand type(s) for |: '_MockObject' and '_MockObject' Will resolve these later as the build passes. --- docs/source/conf.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 7c57e058e..30a58504a 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -95,12 +95,6 @@ autodoc_mock_imports = [ 'PIL', 'libtorrent', 'psyco', - 'pygtk', - 'gtk', - 'gobject', - 'pango', - 'cairo', - 'pangocairo', 'gi', 'curses', 'win32api',