Skip to content

Commit

Permalink
Fix some problems with the documentation config after switch to Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnVinyard committed Mar 7, 2019
1 parent d97abdd commit 2a12537
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@ class ZoundsDocsMock(mock.Mock):
ndarray = object
Module = object
Node = object
Aggregator = str

def __init__(self, *args, **kwargs):
super(ZoundsDocsMock, self).__init__(side_effect=None)
Expand All @@ -368,7 +369,7 @@ def __floordiv__(self, other):
def __rfloordiv__(self, other):
return ZoundsDocsMock()

def __div__(self, other):
def __truediv__(self, other):
return ZoundsDocsMock()

def __rdiv__(self, other):
Expand All @@ -380,6 +381,9 @@ def __truediv__(self, other):
def __rtruediv__(self, other):
return ZoundsDocsMock()

def __le__(self, other):
return None


ZoundsDocsMock.timedelta64 = ZoundsDocsMock

Expand Down

0 comments on commit 2a12537

Please sign in to comment.