diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2017-12-13 10:55:21 -0500 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2017-12-13 10:55:21 -0500 |
| commit | aea23874b04d6f5123650e2c516305db24d239b8 (patch) | |
| tree | 5fbf31c6900c6f95fcc2904a6f68af8b40325f20 /docs | |
| parent | Add encoding to all files (diff) | |
| download | pygensvm-aea23874b04d6f5123650e2c516305db24d239b8.tar.gz pygensvm-aea23874b04d6f5123650e2c516305db24d239b8.zip | |
use mock module for Python 2
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/conf.py | 6 |
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('..')) |
