]> git.pld-linux.org Git - packages/python-urllib3.git/blame - python-urllib3-mock.patch
- docs build requires mock module: ensure using python3, added mock patch to use...
[packages/python-urllib3.git] / python-urllib3-mock.patch
CommitLineData
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):
This page took 0.090594 seconds and 4 git commands to generate.