Skip to content

Commit

Permalink
try using py3 style import (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
maphew committed Jun 14, 2015
1 parent 9728447 commit d34fab2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
import shlex

# https://read-the-docs.readthedocs.org/en/latest/faq.html#i-get-import-errors-on-libraries-that-depend-on-c-modules
from mock import Mock as MagicMock
#from mock import Mock as MagicMock
#py27 import
from unittest.mock import MagicMock
#py3 import

class Mock(MagickMock):
@classmethod
Expand Down
4 changes: 2 additions & 2 deletions docs/source/index.rst.leo
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<vnodes>
<v t="maphew.20150613204824.4"><vh>@persistence</vh>
<v t="maphew.20150613204824.5" a="E"><vh>@data:@auto conf.py</vh>
<v t="maphew.20150613204824.8"><vh>@gnxs</vh></v>
<v t="maphew.20150613204824.9"><vh>@gnxs</vh></v>
</v>
</v>
<v t="maphew.20150601230033.5" a="E"><vh>Apt - Read The Docs</vh>
Expand All @@ -27,7 +27,7 @@
<t tx="maphew.20150613204824.4"></t>
<t tx="maphew.20150613204824.5">gnx: maphew.20150613204824.2
</t>
<t tx="maphew.20150613204824.8">gnx: maphew.20150613204824.3
<t tx="maphew.20150613204824.9">gnx: maphew.20150613204824.3
unl: conf declarations
</t>
</tnodes>
Expand Down

0 comments on commit d34fab2

Please sign in to comment.