From d34fab2598f1aa1def3d9ba69617c2401eb6fc52 Mon Sep 17 00:00:00 2001 From: Matt Wilkie Date: Sat, 13 Jun 2015 22:05:22 -0700 Subject: [PATCH] try using py3 style import (#48) --- docs/source/conf.py | 5 ++++- docs/source/index.rst.leo | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 6fbd28f..10b0238 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -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 diff --git a/docs/source/index.rst.leo b/docs/source/index.rst.leo index 4e01c31..ae89ce0 100644 --- a/docs/source/index.rst.leo +++ b/docs/source/index.rst.leo @@ -12,7 +12,7 @@ @persistence @data:@auto conf.py -@gnxs +@gnxs Apt - Read The Docs @@ -27,7 +27,7 @@ gnx: maphew.20150613204824.2 -gnx: maphew.20150613204824.3 +gnx: maphew.20150613204824.3 unl: conf declarations