]>
Commit | Line | Data |
---|---|---|
70df9369 JB |
1 | --- urllib3-1.24.1/docs/conf.py.orig 2018-10-05 23:00:05.000000000 +0200 |
2 | +++ urllib3-1.24.1/docs/conf.py 2018-12-02 09:35:52.593757249 +0100 | |
3 | @@ -27,7 +27,10 @@ | |
4 | # Mock some expensive/platform-specific modules so build will work. | |
5 | # (https://read-the-docs.readthedocs.io/en/latest/faq.html#\ | |
6 | # i-get-import-errors-on-libraries-that-depend-on-c-modules) | |
7 | -import mock | |
8 | +try: | |
9 | + import mock | |
10 | +except ImportError: | |
11 | + from unittest import mock | |
12 | ||
13 | ||
14 | class MockModule(mock.Mock): |