]> git.pld-linux.org Git - packages/python-urllib3.git/blob - python-urllib3-mock.patch
- updated to 1.25.6
[packages/python-urllib3.git] / python-urllib3-mock.patch
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.075239 seconds and 3 git commands to generate.