Skip to content

Commit

Permalink
Update conf.py
Browse files Browse the repository at this point in the history
Removed the magic mock bits of code
  • Loading branch information
manodeep committed Oct 10, 2023
1 parent cab42bd commit f117e60
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,6 @@
from datetime import date

on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
if on_rtd:
try:
from unittest.mock import MagicMock
except ImportError:
from mock import Mock as MagicMock

class Mock(MagicMock):

@classmethod
def __getattr__(cls, name):
return Mock()

MOCK_MODULES = ['numpy', 'wurlitzer']
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)


# 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
Expand Down

0 comments on commit f117e60

Please sign in to comment.