Mercurial > repos > jpayne > bioproject_to_srr_2
comparison urllib3/contrib/emscripten/__init__.py @ 7:5eb2d5e3bf22
planemo upload for repository https://toolrepo.galaxytrakr.org/view/jpayne/bioproject_to_srr_2/556cac4fb538
author | jpayne |
---|---|
date | Sun, 05 May 2024 23:32:17 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
6:b2745907b1eb | 7:5eb2d5e3bf22 |
---|---|
1 from __future__ import annotations | |
2 | |
3 import urllib3.connection | |
4 | |
5 from ...connectionpool import HTTPConnectionPool, HTTPSConnectionPool | |
6 from .connection import EmscriptenHTTPConnection, EmscriptenHTTPSConnection | |
7 | |
8 | |
9 def inject_into_urllib3() -> None: | |
10 # override connection classes to use emscripten specific classes | |
11 # n.b. mypy complains about the overriding of classes below | |
12 # if it isn't ignored | |
13 HTTPConnectionPool.ConnectionCls = EmscriptenHTTPConnection | |
14 HTTPSConnectionPool.ConnectionCls = EmscriptenHTTPSConnection | |
15 urllib3.connection.HTTPConnection = EmscriptenHTTPConnection # type: ignore[misc,assignment] | |
16 urllib3.connection.HTTPSConnection = EmscriptenHTTPSConnection # type: ignore[misc,assignment] |