aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorGertjan van den Burg <gertjanvandenburg@gmail.com>2017-12-13 10:55:21 -0500
committerGertjan van den Burg <gertjanvandenburg@gmail.com>2017-12-13 10:55:21 -0500
commitaea23874b04d6f5123650e2c516305db24d239b8 (patch)
tree5fbf31c6900c6f95fcc2904a6f68af8b40325f20 /docs
parentAdd encoding to all files (diff)
downloadpygensvm-aea23874b04d6f5123650e2c516305db24d239b8.tar.gz
pygensvm-aea23874b04d6f5123650e2c516305db24d239b8.zip
use mock module for Python 2
Diffstat (limited to 'docs')
-rw-r--r--docs/conf.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/conf.py b/docs/conf.py
index a5c06ea..c3e5af1 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -22,7 +22,11 @@ import os
import sys
import sphinx_rtd_theme
-from unittest.mock import MagicMock
+try:
+ from unittest.mock import MagicMock
+except:
+ # python 2
+ from mock import MagicMock
sys.path.insert(0, os.path.abspath('..'))