windhose 2.0.0__tar.gz → 2.0.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {windhose-2.0.0/windhose.egg-info → windhose-2.0.2}/PKG-INFO +51 -2
- {windhose-2.0.0 → windhose-2.0.2}/README.rst +50 -1
- windhose-2.0.2/pyproject.toml +44 -0
- {windhose-2.0.0 → windhose-2.0.2}/setup.py +7 -4
- {windhose-2.0.0 → windhose-2.0.2}/tornado/__init__.py +2 -2
- {windhose-2.0.0 → windhose-2.0.2}/tornado/auth.py +17 -23
- {windhose-2.0.0 → windhose-2.0.2}/tornado/autoreload.py +5 -5
- {windhose-2.0.0 → windhose-2.0.2}/tornado/concurrent.py +6 -6
- {windhose-2.0.0 → windhose-2.0.2}/tornado/curl_httpclient.py +19 -22
- {windhose-2.0.0 → windhose-2.0.2}/tornado/escape.py +3 -3
- {windhose-2.0.0 → windhose-2.0.2}/tornado/gen.py +49 -49
- {windhose-2.0.0 → windhose-2.0.2}/tornado/http1connection.py +14 -17
- {windhose-2.0.0 → windhose-2.0.2}/tornado/httpclient.py +8 -8
- {windhose-2.0.0 → windhose-2.0.2}/tornado/httpserver.py +8 -8
- {windhose-2.0.0 → windhose-2.0.2}/tornado/httputil.py +14 -18
- {windhose-2.0.0 → windhose-2.0.2}/tornado/ioloop.py +18 -18
- {windhose-2.0.0 → windhose-2.0.2}/tornado/iostream.py +33 -31
- {windhose-2.0.0 → windhose-2.0.2}/tornado/locale.py +9 -11
- {windhose-2.0.0 → windhose-2.0.2}/tornado/locks.py +5 -11
- {windhose-2.0.0 → windhose-2.0.2}/tornado/log.py +7 -9
- {windhose-2.0.0 → windhose-2.0.2}/tornado/netutil.py +12 -14
- {windhose-2.0.0 → windhose-2.0.2}/tornado/options.py +5 -7
- {windhose-2.0.0 → windhose-2.0.2}/tornado/platform/asyncio.py +20 -22
- {windhose-2.0.0 → windhose-2.0.2}/tornado/platform/caresresolver.py +1 -1
- {windhose-2.0.0 → windhose-2.0.2}/tornado/platform/twisted.py +8 -6
- {windhose-2.0.0 → windhose-2.0.2}/tornado/process.py +6 -6
- {windhose-2.0.0 → windhose-2.0.2}/tornado/queues.py +10 -14
- {windhose-2.0.0 → windhose-2.0.2}/tornado/routing.py +9 -15
- {windhose-2.0.0 → windhose-2.0.2}/tornado/simple_httpclient.py +22 -34
- {windhose-2.0.0 → windhose-2.0.2}/tornado/tcpclient.py +13 -15
- {windhose-2.0.0 → windhose-2.0.2}/tornado/tcpserver.py +2 -2
- {windhose-2.0.0 → windhose-2.0.2}/tornado/template.py +5 -7
- {windhose-2.0.0 → windhose-2.0.2}/tornado/test/__main__.py +1 -1
- {windhose-2.0.0 → windhose-2.0.2}/tornado/test/asyncio_test.py +48 -50
- {windhose-2.0.0 → windhose-2.0.2}/tornado/test/auth_test.py +73 -78
- {windhose-2.0.0 → windhose-2.0.2}/tornado/test/autoreload_test.py +22 -26
- {windhose-2.0.0 → windhose-2.0.2}/tornado/test/circlerefs_test.py +29 -29
- {windhose-2.0.0 → windhose-2.0.2}/tornado/test/concurrent_test.py +36 -36
- {windhose-2.0.0 → windhose-2.0.2}/tornado/test/curl_httpclient_test.py +25 -25
- {windhose-2.0.0 → windhose-2.0.2}/tornado/test/escape_test.py +12 -12
- {windhose-2.0.0 → windhose-2.0.2}/tornado/test/gen_test.py +176 -178
- {windhose-2.0.0 → windhose-2.0.2}/tornado/test/http1connection_test.py +8 -8
- {windhose-2.0.0 → windhose-2.0.2}/tornado/test/httpclient_test.py +115 -122
- {windhose-2.0.0 → windhose-2.0.2}/tornado/test/httpserver_test.py +274 -280
- {windhose-2.0.0 → windhose-2.0.2}/tornado/test/httputil_test.py +77 -85
- {windhose-2.0.0 → windhose-2.0.2}/tornado/test/import_test.py +5 -5
- {windhose-2.0.0 → windhose-2.0.2}/tornado/test/ioloop_test.py +115 -117
- {windhose-2.0.0 → windhose-2.0.2}/tornado/test/iostream_test.py +165 -170
- {windhose-2.0.0 → windhose-2.0.2}/tornado/test/locale_test.py +16 -18
- {windhose-2.0.0 → windhose-2.0.2}/tornado/test/locks_test.py +81 -81
- {windhose-2.0.0 → windhose-2.0.2}/tornado/test/log_test.py +36 -36
- {windhose-2.0.0 → windhose-2.0.2}/tornado/test/netutil_test.py +19 -21
- {windhose-2.0.0 → windhose-2.0.2}/tornado/test/options_test.py +38 -38
- {windhose-2.0.0 → windhose-2.0.2}/tornado/test/process_test.py +33 -33
- {windhose-2.0.0 → windhose-2.0.2}/tornado/test/queues_test.py +68 -68
- {windhose-2.0.0 → windhose-2.0.2}/tornado/test/routing_test.py +45 -45
- {windhose-2.0.0 → windhose-2.0.2}/tornado/test/runtests.py +20 -22
- {windhose-2.0.0 → windhose-2.0.2}/tornado/test/simple_httpclient_test.py +123 -129
- windhose-2.0.2/tornado/test/tcpclient_test.py +431 -0
- {windhose-2.0.0 → windhose-2.0.2}/tornado/test/tcpserver_test.py +13 -13
- {windhose-2.0.0 → windhose-2.0.2}/tornado/test/template_test.py +63 -64
- {windhose-2.0.0 → windhose-2.0.2}/tornado/test/testing_test.py +49 -49
- {windhose-2.0.0 → windhose-2.0.2}/tornado/test/twisted_test.py +9 -7
- {windhose-2.0.0 → windhose-2.0.2}/tornado/test/util.py +9 -9
- {windhose-2.0.0 → windhose-2.0.2}/tornado/test/util_test.py +51 -51
- {windhose-2.0.0 → windhose-2.0.2}/tornado/test/web_test.py +579 -609
- {windhose-2.0.0 → windhose-2.0.2}/tornado/test/websocket_test.py +139 -145
- {windhose-2.0.0 → windhose-2.0.2}/tornado/test/wsgi_test.py +22 -22
- {windhose-2.0.0 → windhose-2.0.2}/tornado/testing.py +20 -26
- {windhose-2.0.0 → windhose-2.0.2}/tornado/util.py +6 -6
- {windhose-2.0.0 → windhose-2.0.2}/tornado/web.py +56 -71
- {windhose-2.0.0 → windhose-2.0.2}/tornado/websocket.py +18 -23
- {windhose-2.0.0 → windhose-2.0.2}/tornado/wsgi.py +3 -3
- {windhose-2.0.0 → windhose-2.0.2/windhose.egg-info}/PKG-INFO +51 -2
- windhose-2.0.0/pyproject.toml +0 -31
- windhose-2.0.0/tornado/test/tcpclient_test.py +0 -431
- {windhose-2.0.0 → windhose-2.0.2}/LICENSE +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/MANIFEST.in +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/Makefile +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/asyncio.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/auth.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/autoreload.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/caresresolver.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/concurrent.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/conf.py +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/coroutine.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/escape.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/faq.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/favicon.ico +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/gen.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/guide/async.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/guide/coroutines.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/guide/intro.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/guide/queues.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/guide/running.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/guide/security.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/guide/structure.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/guide/templates.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/guide.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/http.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/http1connection.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/httpclient.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/httpserver.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/httputil.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/index.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/integration.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/ioloop.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/iostream.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/locale.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/locks.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/log.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/netutil.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/networking.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/options.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/process.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/queues.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v1.0.0.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v1.0.1.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v1.1.0.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v1.1.1.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v1.2.0.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v1.2.1.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v2.0.0.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v2.1.0.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v2.1.1.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v2.2.0.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v2.2.1.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v2.3.0.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v2.4.0.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v2.4.1.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v3.0.0.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v3.0.1.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v3.0.2.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v3.1.0.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v3.1.1.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v3.2.0.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v3.2.1.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v3.2.2.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v4.0.0.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v4.0.1.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v4.0.2.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v4.1.0.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v4.2.0.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v4.2.1.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v4.3.0.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v4.4.0.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v4.4.1.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v4.4.2.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v4.4.3.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v4.5.0.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v4.5.1.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v4.5.2.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v4.5.3.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v5.0.0.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v5.0.1.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v5.0.2.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v5.1.0.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v5.1.1.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v6.0.0.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v6.0.1.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v6.0.2.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v6.0.3.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v6.0.4.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v6.1.0.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v6.2.0.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v6.3.0.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v6.3.1.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v6.3.2.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v6.3.3.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v6.4.0.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v6.4.1.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v6.4.2.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v6.5.0.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v6.5.1.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v6.5.2.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v6.5.3.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v6.5.4.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v6.5.5.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v6.5.6.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v6.5.7.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases/v6.5.8.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/releases.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/routing.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/tcpclient.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/tcpserver.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/template.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/testing.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/tornado.png +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/twisted.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/util.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/utilities.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/web.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/webframework.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/websocket.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/docs/wsgi.rst +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/requirements.in +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/requirements.txt +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/runtests.sh +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/setup.cfg +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/tornado/__init__.pyi +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/tornado/_locale_data.py +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/tornado/platform/__init__.py +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/tornado/py.typed +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/tornado/speedups.c +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/tornado/speedups.pyi +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/tornado/test/__init__.py +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/tornado/test/csv_translations/fr_FR.csv +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/tornado/test/gettext_translations/fr_FR/LC_MESSAGES/tornado_test.mo +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/tornado/test/gettext_translations/fr_FR/LC_MESSAGES/tornado_test.po +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/tornado/test/options_test.cfg +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/tornado/test/options_test_types.cfg +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/tornado/test/options_test_types_str.cfg +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/tornado/test/resolve_test_helper.py +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/tornado/test/static/dir/index.html +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/tornado/test/static/robots.txt +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/tornado/test/static/sample.xml +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/tornado/test/static/sample.xml.bz2 +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/tornado/test/static/sample.xml.gz +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/tornado/test/static_foo.txt +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/tornado/test/templates/utf8.html +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/tornado/test/test.crt +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/tornado/test/test.key +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/tox.ini +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/windhose.egg-info/SOURCES.txt +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/windhose.egg-info/dependency_links.txt +0 -0
- {windhose-2.0.0 → windhose-2.0.2}/windhose.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: windhose
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.2
|
|
4
4
|
Summary: Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed.
|
|
5
5
|
Home-page: https://codeberg.org/Joshix/tornado
|
|
6
6
|
Author: Joshix
|
|
@@ -38,7 +38,56 @@ The last common commit is d72fff8d7b9b8f6aa68505847e5483d600e3184c `Fork <https:
|
|
|
38
38
|
|
|
39
39
|
I'll try to maintain it as best I can and will add opionionated changes.
|
|
40
40
|
|
|
41
|
-
The new package name
|
|
41
|
+
The new package name is `windhose`. The import path will not change for the forseable future.
|
|
42
|
+
|
|
43
|
+
Changelog
|
|
44
|
+
---------
|
|
45
|
+
|
|
46
|
+
For know I'll try to document important changes here.
|
|
47
|
+
|
|
48
|
+
1.0.0
|
|
49
|
+
~~~~~
|
|
50
|
+
|
|
51
|
+
- some changes from v6.5.8
|
|
52
|
+
- changed some links
|
|
53
|
+
- raised minimum supported python version to 3.11
|
|
54
|
+
- build riscv64 wheels
|
|
55
|
+
|
|
56
|
+
2.0.0
|
|
57
|
+
~~~~~
|
|
58
|
+
|
|
59
|
+
boring changes:
|
|
60
|
+
|
|
61
|
+
- sort imports
|
|
62
|
+
- ran pyupgrade to automatically modernize some things
|
|
63
|
+
- use more f-strings
|
|
64
|
+
- ...
|
|
65
|
+
- improve typing
|
|
66
|
+
- replace usages of types from `typing` with the built-ins
|
|
67
|
+
- used proper types from `collections.abc`
|
|
68
|
+
- used new union syntax (`str | None` instead of `Optional[str]`)
|
|
69
|
+
- removed strings from type-hints
|
|
70
|
+
- `from __future__ import annotations` for 3.11 and 3.12 support
|
|
71
|
+
- remove type comments (using com2ann)
|
|
72
|
+
- add musllinux wheels
|
|
73
|
+
|
|
74
|
+
breaking changes:
|
|
75
|
+
|
|
76
|
+
- changed default status codes of redirect: `301` -> `308` & `302` -> `307`
|
|
77
|
+
- support rfc 2324
|
|
78
|
+
|
|
79
|
+
2.0.1
|
|
80
|
+
~~~~~
|
|
81
|
+
|
|
82
|
+
- changed `Server` header value
|
|
83
|
+
- fixed abi3t wheels
|
|
84
|
+
|
|
85
|
+
2.0.2
|
|
86
|
+
~~~~~
|
|
87
|
+
|
|
88
|
+
- added this changelog
|
|
89
|
+
- handle asyncio.CancelledError from request handlers
|
|
90
|
+
- stricter mypy type-checks (most errors ignored for know)
|
|
42
91
|
|
|
43
92
|
Tornado Web Server
|
|
44
93
|
==================
|
|
@@ -7,7 +7,56 @@ The last common commit is d72fff8d7b9b8f6aa68505847e5483d600e3184c `Fork <https:
|
|
|
7
7
|
|
|
8
8
|
I'll try to maintain it as best I can and will add opionionated changes.
|
|
9
9
|
|
|
10
|
-
The new package name
|
|
10
|
+
The new package name is `windhose`. The import path will not change for the forseable future.
|
|
11
|
+
|
|
12
|
+
Changelog
|
|
13
|
+
---------
|
|
14
|
+
|
|
15
|
+
For know I'll try to document important changes here.
|
|
16
|
+
|
|
17
|
+
1.0.0
|
|
18
|
+
~~~~~
|
|
19
|
+
|
|
20
|
+
- some changes from v6.5.8
|
|
21
|
+
- changed some links
|
|
22
|
+
- raised minimum supported python version to 3.11
|
|
23
|
+
- build riscv64 wheels
|
|
24
|
+
|
|
25
|
+
2.0.0
|
|
26
|
+
~~~~~
|
|
27
|
+
|
|
28
|
+
boring changes:
|
|
29
|
+
|
|
30
|
+
- sort imports
|
|
31
|
+
- ran pyupgrade to automatically modernize some things
|
|
32
|
+
- use more f-strings
|
|
33
|
+
- ...
|
|
34
|
+
- improve typing
|
|
35
|
+
- replace usages of types from `typing` with the built-ins
|
|
36
|
+
- used proper types from `collections.abc`
|
|
37
|
+
- used new union syntax (`str | None` instead of `Optional[str]`)
|
|
38
|
+
- removed strings from type-hints
|
|
39
|
+
- `from __future__ import annotations` for 3.11 and 3.12 support
|
|
40
|
+
- remove type comments (using com2ann)
|
|
41
|
+
- add musllinux wheels
|
|
42
|
+
|
|
43
|
+
breaking changes:
|
|
44
|
+
|
|
45
|
+
- changed default status codes of redirect: `301` -> `308` & `302` -> `307`
|
|
46
|
+
- support rfc 2324
|
|
47
|
+
|
|
48
|
+
2.0.1
|
|
49
|
+
~~~~~
|
|
50
|
+
|
|
51
|
+
- changed `Server` header value
|
|
52
|
+
- fixed abi3t wheels
|
|
53
|
+
|
|
54
|
+
2.0.2
|
|
55
|
+
~~~~~
|
|
56
|
+
|
|
57
|
+
- added this changelog
|
|
58
|
+
- handle asyncio.CancelledError from request handlers
|
|
59
|
+
- stricter mypy type-checks (most errors ignored for know)
|
|
11
60
|
|
|
12
61
|
Tornado Web Server
|
|
13
62
|
==================
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools==80.10.2", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[tool.black]
|
|
6
|
+
target-version = ['py311', 'py312', 'py313']
|
|
7
|
+
line-length = 90
|
|
8
|
+
|
|
9
|
+
[tool.isort]
|
|
10
|
+
atomic = true
|
|
11
|
+
combine_as_imports = true
|
|
12
|
+
line_length = 90
|
|
13
|
+
profile = "black"
|
|
14
|
+
py_version = "314"
|
|
15
|
+
remove_redundant_aliases = true
|
|
16
|
+
skip_gitignore = true
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
[tool.mypy]
|
|
20
|
+
strict = true
|
|
21
|
+
sqlite_cache = true
|
|
22
|
+
python_version = "3.11"
|
|
23
|
+
warn_unreachable = true
|
|
24
|
+
# disallow_any_expr = true
|
|
25
|
+
# disallow_any_explicit = true
|
|
26
|
+
# disallow_any_decorated = true
|
|
27
|
+
disallow_any_unimported = true
|
|
28
|
+
disallow_untyped_defs = true
|
|
29
|
+
enable_error_code = [
|
|
30
|
+
# "explicit-override",
|
|
31
|
+
"ignore-without-code",
|
|
32
|
+
"possibly-undefined",
|
|
33
|
+
"redundant-expr",
|
|
34
|
+
"redundant-self",
|
|
35
|
+
"truthy-bool",
|
|
36
|
+
"truthy-iterable",
|
|
37
|
+
"unused-awaitable",
|
|
38
|
+
]
|
|
39
|
+
local_partial_types = true
|
|
40
|
+
enable_incomplete_feature = ["PreciseTupleTypes"]
|
|
41
|
+
modules = "setup"
|
|
42
|
+
|
|
43
|
+
[[tool.mypy.overrides]]
|
|
44
|
+
module = "tornado.test.*"
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
# License for the specific language governing permissions and limitations
|
|
14
14
|
# under the License.
|
|
15
15
|
|
|
16
|
-
import sys
|
|
17
16
|
import os
|
|
18
17
|
import platform
|
|
18
|
+
import sys
|
|
19
19
|
import sysconfig
|
|
20
20
|
|
|
21
21
|
import setuptools
|
|
@@ -41,12 +41,15 @@ if (
|
|
|
41
41
|
|
|
42
42
|
if abi3t:
|
|
43
43
|
from setuptools.command.bdist_wheel import bdist_wheel
|
|
44
|
+
|
|
44
45
|
# SEE: https://github.com/pypa/setuptools/pull/5193
|
|
45
46
|
# TODO: switch to good build_backend!
|
|
46
47
|
_get_tag = bdist_wheel.get_tag
|
|
48
|
+
|
|
47
49
|
def get_tag(self) -> tuple[str, str, str]:
|
|
48
|
-
|
|
49
|
-
return (a, "
|
|
50
|
+
a, _, b = _get_tag(self)
|
|
51
|
+
return (a, "abi3t", b)
|
|
52
|
+
|
|
50
53
|
bdist_wheel.get_tag = get_tag
|
|
51
54
|
|
|
52
55
|
# This extension builds and works on pypy as well, although pypy's jit
|
|
@@ -60,7 +63,7 @@ if (
|
|
|
60
63
|
optional=os.environ.get("TORNADO_EXTENSION") != "1",
|
|
61
64
|
# Use the stable ABI so our wheels are compatible across python
|
|
62
65
|
# versions.
|
|
63
|
-
py_limited_api=abi3
|
|
66
|
+
py_limited_api=abi3,
|
|
64
67
|
define_macros=[
|
|
65
68
|
*([("Py_LIMITED_API", "0x030B0000")] if abi3 else []),
|
|
66
69
|
*([("DPy_TARGET_ABI3T", "0x30f0000")] if abi3t else []),
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
# version is a human-readable version number.
|
|
19
19
|
|
|
20
20
|
# version_info is a four-tuple for programmatic comparison.
|
|
21
|
-
version = "2.0.
|
|
22
|
-
version_info = (2, 0,
|
|
21
|
+
version = "2.0.2"
|
|
22
|
+
version_info = (2, 0, 2, 0)
|
|
23
23
|
|
|
24
24
|
import importlib
|
|
25
25
|
import typing
|
|
@@ -140,7 +140,7 @@ class OpenIdMixin:
|
|
|
140
140
|
callback_uri = callback_uri or handler.request.uri
|
|
141
141
|
assert callback_uri is not None
|
|
142
142
|
args = self._openid_args(callback_uri, ax_attrs=ax_attrs)
|
|
143
|
-
endpoint = self._OPENID_ENDPOINT # type: ignore
|
|
143
|
+
endpoint = self._OPENID_ENDPOINT # type: ignore[attr-defined] # FIX ME
|
|
144
144
|
handler.redirect(endpoint + "?" + urllib.parse.urlencode(args), status=302)
|
|
145
145
|
|
|
146
146
|
async def get_authenticated_user(
|
|
@@ -167,7 +167,7 @@ class OpenIdMixin:
|
|
|
167
167
|
k: v[-1] for k, v in handler.request.arguments.items()
|
|
168
168
|
}
|
|
169
169
|
args["openid.mode"] = "check_authentication"
|
|
170
|
-
url = self._OPENID_ENDPOINT # type: ignore
|
|
170
|
+
url = self._OPENID_ENDPOINT # type: ignore[attr-defined] # FIX ME
|
|
171
171
|
if http_client is None:
|
|
172
172
|
http_client = self.get_auth_http_client()
|
|
173
173
|
resp = await http_client.fetch(
|
|
@@ -191,7 +191,7 @@ class OpenIdMixin:
|
|
|
191
191
|
"openid.realm": urllib.parse.urljoin(url, "/"),
|
|
192
192
|
"openid.mode": "checkid_setup",
|
|
193
193
|
}
|
|
194
|
-
if ax_attrs:
|
|
194
|
+
if ax_attrs: # type: ignore[truthy-iterable] # FIX ME
|
|
195
195
|
args.update(
|
|
196
196
|
{
|
|
197
197
|
"openid.ns.ax": "http://openid.net/srv/ax/1.0",
|
|
@@ -363,7 +363,7 @@ class OAuthMixin:
|
|
|
363
363
|
)
|
|
364
364
|
else:
|
|
365
365
|
response = await http_client.fetch(self._oauth_request_token_url())
|
|
366
|
-
url = self._OAUTH_AUTHORIZE_URL # type: ignore
|
|
366
|
+
url = self._OAUTH_AUTHORIZE_URL # type: ignore[attr-defined] # FIX ME
|
|
367
367
|
self._on_request_token(url, callback_uri, response)
|
|
368
368
|
|
|
369
369
|
async def get_authenticated_user(
|
|
@@ -417,7 +417,7 @@ class OAuthMixin:
|
|
|
417
417
|
) -> str:
|
|
418
418
|
handler = cast(RequestHandler, self)
|
|
419
419
|
consumer_token = self._oauth_consumer_token()
|
|
420
|
-
url = self._OAUTH_REQUEST_TOKEN_URL # type: ignore
|
|
420
|
+
url = self._OAUTH_REQUEST_TOKEN_URL # type: ignore[attr-defined] # FIX ME
|
|
421
421
|
args = dict(
|
|
422
422
|
oauth_consumer_key=escape.to_basestring(consumer_token["key"]),
|
|
423
423
|
oauth_signature_method="HMAC-SHA1",
|
|
@@ -439,7 +439,7 @@ class OAuthMixin:
|
|
|
439
439
|
signature = _oauth_signature(consumer_token, "GET", url, args)
|
|
440
440
|
|
|
441
441
|
args["oauth_signature"] = signature
|
|
442
|
-
return url + "?" + urllib.parse.urlencode(args)
|
|
442
|
+
return url + "?" + urllib.parse.urlencode(args) # type: ignore[no-any-return] # FIX ME
|
|
443
443
|
|
|
444
444
|
def _on_request_token(
|
|
445
445
|
self,
|
|
@@ -457,7 +457,7 @@ class OAuthMixin:
|
|
|
457
457
|
handler.set_cookie("_oauth_request_token", data)
|
|
458
458
|
args = dict(oauth_token=request_token["key"])
|
|
459
459
|
if callback_uri == "oob":
|
|
460
|
-
handler.finish(authorize_url + "?" + urllib.parse.urlencode(args))
|
|
460
|
+
handler.finish(authorize_url + "?" + urllib.parse.urlencode(args)) # type: ignore[unused-awaitable] # FIX ME
|
|
461
461
|
return
|
|
462
462
|
elif callback_uri:
|
|
463
463
|
args["oauth_callback"] = urllib.parse.urljoin(
|
|
@@ -467,7 +467,7 @@ class OAuthMixin:
|
|
|
467
467
|
|
|
468
468
|
def _oauth_access_token_url(self, request_token: dict[str, Any]) -> str:
|
|
469
469
|
consumer_token = self._oauth_consumer_token()
|
|
470
|
-
url = self._OAUTH_ACCESS_TOKEN_URL # type: ignore
|
|
470
|
+
url = self._OAUTH_ACCESS_TOKEN_URL # type: ignore[attr-defined] # FIX ME
|
|
471
471
|
args = dict(
|
|
472
472
|
oauth_consumer_key=escape.to_basestring(consumer_token["key"]),
|
|
473
473
|
oauth_token=escape.to_basestring(request_token["key"]),
|
|
@@ -484,12 +484,10 @@ class OAuthMixin:
|
|
|
484
484
|
consumer_token, "GET", url, args, request_token
|
|
485
485
|
)
|
|
486
486
|
else:
|
|
487
|
-
signature = _oauth_signature(
|
|
488
|
-
consumer_token, "GET", url, args, request_token
|
|
489
|
-
)
|
|
487
|
+
signature = _oauth_signature(consumer_token, "GET", url, args, request_token)
|
|
490
488
|
|
|
491
489
|
args["oauth_signature"] = signature
|
|
492
|
-
return url + "?" + urllib.parse.urlencode(args)
|
|
490
|
+
return url + "?" + urllib.parse.urlencode(args) # type: ignore[no-any-return] # FIX ME
|
|
493
491
|
|
|
494
492
|
def _oauth_consumer_token(self) -> dict[str, Any]:
|
|
495
493
|
"""Subclasses must override this to return their OAuth consumer keys.
|
|
@@ -551,9 +549,7 @@ class OAuthMixin:
|
|
|
551
549
|
consumer_token, method, url, args, access_token
|
|
552
550
|
)
|
|
553
551
|
else:
|
|
554
|
-
signature = _oauth_signature(
|
|
555
|
-
consumer_token, method, url, args, access_token
|
|
556
|
-
)
|
|
552
|
+
signature = _oauth_signature(consumer_token, method, url, args, access_token)
|
|
557
553
|
base_args["oauth_signature"] = escape.to_basestring(signature)
|
|
558
554
|
return base_args
|
|
559
555
|
|
|
@@ -616,7 +612,7 @@ class OAuth2Mixin:
|
|
|
616
612
|
args.update(extra_params)
|
|
617
613
|
if scope:
|
|
618
614
|
args["scope"] = " ".join(scope)
|
|
619
|
-
url = self._OAUTH_AUTHORIZE_URL # type: ignore
|
|
615
|
+
url = self._OAUTH_AUTHORIZE_URL # type: ignore[attr-defined] # FIX ME
|
|
620
616
|
handler.redirect(url_concat(url, args), status=302)
|
|
621
617
|
|
|
622
618
|
def _oauth_request_token_url(
|
|
@@ -627,7 +623,7 @@ class OAuth2Mixin:
|
|
|
627
623
|
code: str | None = None,
|
|
628
624
|
extra_params: dict[str, Any] | None = None,
|
|
629
625
|
) -> str:
|
|
630
|
-
url = self._OAUTH_ACCESS_TOKEN_URL # type: ignore
|
|
626
|
+
url = self._OAUTH_ACCESS_TOKEN_URL # type: ignore[attr-defined] # FIX ME
|
|
631
627
|
args: dict[str, str] = {}
|
|
632
628
|
if redirect_uri is not None:
|
|
633
629
|
args["redirect_uri"] = redirect_uri
|
|
@@ -859,7 +855,7 @@ class TwitterMixin(OAuthMixin):
|
|
|
859
855
|
)
|
|
860
856
|
if user:
|
|
861
857
|
user["username"] = user["screen_name"]
|
|
862
|
-
return user
|
|
858
|
+
return user # type: ignore[no-any-return] # FIX ME
|
|
863
859
|
|
|
864
860
|
|
|
865
861
|
class GoogleOAuth2Mixin(OAuth2Mixin):
|
|
@@ -906,7 +902,7 @@ class GoogleOAuth2Mixin(OAuth2Mixin):
|
|
|
906
902
|
override this method for custom provision.
|
|
907
903
|
"""
|
|
908
904
|
handler = cast(RequestHandler, self)
|
|
909
|
-
return handler.settings[self._OAUTH_SETTINGS_KEY]
|
|
905
|
+
return handler.settings[self._OAUTH_SETTINGS_KEY] # type: ignore[no-any-return] # FIX ME
|
|
910
906
|
|
|
911
907
|
async def get_authenticated_user(
|
|
912
908
|
self,
|
|
@@ -989,7 +985,7 @@ class GoogleOAuth2Mixin(OAuth2Mixin):
|
|
|
989
985
|
headers={"Content-Type": "application/x-www-form-urlencoded"},
|
|
990
986
|
body=body,
|
|
991
987
|
)
|
|
992
|
-
return escape.json_decode(response.body)
|
|
988
|
+
return escape.json_decode(response.body) # type: ignore[no-any-return] # FIX ME
|
|
993
989
|
|
|
994
990
|
|
|
995
991
|
class FacebookGraphMixin(OAuth2Mixin):
|
|
@@ -1065,9 +1061,7 @@ class FacebookGraphMixin(OAuth2Mixin):
|
|
|
1065
1061
|
if extra_fields:
|
|
1066
1062
|
fields.update(extra_fields)
|
|
1067
1063
|
|
|
1068
|
-
response = await http.fetch(
|
|
1069
|
-
self._oauth_request_token_url(**args) # type: ignore
|
|
1070
|
-
)
|
|
1064
|
+
response = await http.fetch(self._oauth_request_token_url(**args)) # type: ignore[arg-type] # FIX ME
|
|
1071
1065
|
args = escape.json_decode(response.body)
|
|
1072
1066
|
session = {
|
|
1073
1067
|
"access_token": args.get("access_token"),
|
|
@@ -90,7 +90,7 @@ from tornado.log import gen_log
|
|
|
90
90
|
try:
|
|
91
91
|
import signal
|
|
92
92
|
except ImportError:
|
|
93
|
-
signal = None # type: ignore
|
|
93
|
+
signal = None # type: ignore[assignment] # FIX ME
|
|
94
94
|
|
|
95
95
|
from collections.abc import Callable
|
|
96
96
|
|
|
@@ -99,13 +99,13 @@ from collections.abc import Callable
|
|
|
99
99
|
# fixes that behavior.
|
|
100
100
|
_has_execv = sys.platform != "win32"
|
|
101
101
|
|
|
102
|
-
_watched_files = set()
|
|
103
|
-
_reload_hooks = []
|
|
102
|
+
_watched_files = set() # type: ignore[var-annotated] # FIX ME
|
|
103
|
+
_reload_hooks = [] # type: ignore[var-annotated] # FIX ME
|
|
104
104
|
_reload_attempted = False
|
|
105
105
|
_io_loops: weakref.WeakKeyDictionary[ioloop.IOLoop, bool] = weakref.WeakKeyDictionary()
|
|
106
106
|
_autoreload_is_main = False
|
|
107
107
|
_original_argv: list[str] | None = None
|
|
108
|
-
_original_spec = None
|
|
108
|
+
_original_spec = None # type: ignore[var-annotated] # FIX ME
|
|
109
109
|
|
|
110
110
|
|
|
111
111
|
def start(check_time: int = 500) -> None:
|
|
@@ -171,7 +171,7 @@ def _reload_on_update(modify_times: dict[str, float]) -> None:
|
|
|
171
171
|
# failures in getattr. Just ignore anything that's not an ordinary
|
|
172
172
|
# module.
|
|
173
173
|
if not isinstance(module, types.ModuleType):
|
|
174
|
-
continue
|
|
174
|
+
continue # type: ignore[unreachable] # FIX ME
|
|
175
175
|
path = getattr(module, "__file__", None)
|
|
176
176
|
if not path:
|
|
177
177
|
continue
|
|
@@ -71,7 +71,7 @@ class DummyExecutor(futures.Executor):
|
|
|
71
71
|
dummy_executor = DummyExecutor()
|
|
72
72
|
|
|
73
73
|
|
|
74
|
-
def run_on_executor(*args: Any, **kwargs: Any) -> Callable:
|
|
74
|
+
def run_on_executor(*args: Any, **kwargs: Any) -> Callable: # type: ignore[type-arg] # FIX ME
|
|
75
75
|
"""Decorator to run a synchronous method asynchronously on an executor.
|
|
76
76
|
|
|
77
77
|
Returns a future.
|
|
@@ -114,12 +114,12 @@ def run_on_executor(*args: Any, **kwargs: Any) -> Callable:
|
|
|
114
114
|
|
|
115
115
|
# Fully type-checking decorators is tricky, and this one is
|
|
116
116
|
# discouraged anyway so it doesn't have all the generic magic.
|
|
117
|
-
def run_on_executor_decorator(fn: Callable) -> Callable[..., Future]:
|
|
117
|
+
def run_on_executor_decorator(fn: Callable) -> Callable[..., Future]: # type: ignore[type-arg] # FIX ME
|
|
118
118
|
executor = kwargs.get("executor", "executor")
|
|
119
119
|
|
|
120
120
|
@functools.wraps(fn)
|
|
121
|
-
def wrapper(self: Any, *args: Any, **kwargs: Any) -> Future:
|
|
122
|
-
async_future: Future = Future()
|
|
121
|
+
def wrapper(self: Any, *args: Any, **kwargs: Any) -> Future: # type: ignore[type-arg] # FIX ME
|
|
122
|
+
async_future: Future = Future() # type: ignore[type-arg] # FIX ME
|
|
123
123
|
conc_future = getattr(self, executor).submit(fn, self, *args, **kwargs)
|
|
124
124
|
chain_future(conc_future, async_future)
|
|
125
125
|
return async_future
|
|
@@ -157,8 +157,8 @@ def chain_future(
|
|
|
157
157
|
def copy(a: Future[_T]) -> None:
|
|
158
158
|
if b.done():
|
|
159
159
|
return
|
|
160
|
-
if hasattr(a, "exc_info") and a.exc_info() is not None:
|
|
161
|
-
future_set_exc_info(b, a.exc_info())
|
|
160
|
+
if hasattr(a, "exc_info") and a.exc_info() is not None:
|
|
161
|
+
future_set_exc_info(b, a.exc_info())
|
|
162
162
|
else:
|
|
163
163
|
a_exc = a.exception()
|
|
164
164
|
if a_exc is not None:
|
|
@@ -45,7 +45,7 @@ CR_OR_LF_RE = re.compile(b"\r|\n")
|
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
class CurlAsyncHTTPClient(AsyncHTTPClient):
|
|
48
|
-
def initialize( # type: ignore
|
|
48
|
+
def initialize( # type: ignore[explicit-override, override] # FIX ME
|
|
49
49
|
self, max_clients: int = 10, defaults: dict[str, Any] | None = None
|
|
50
50
|
) -> None:
|
|
51
51
|
super().initialize(defaults=defaults)
|
|
@@ -196,21 +196,21 @@ class CurlAsyncHTTPClient(AsyncHTTPClient):
|
|
|
196
196
|
curl = self._free_list.pop()
|
|
197
197
|
request, callback, queue_start_time = self._requests.popleft()
|
|
198
198
|
# TODO: Don't smuggle extra data on an attribute of the Curl object.
|
|
199
|
-
curl.info = { # type: ignore
|
|
199
|
+
curl.info = { # type: ignore[attr-defined] # FIX ME
|
|
200
200
|
"headers": httputil.HTTPHeaders(),
|
|
201
201
|
"buffer": BytesIO(),
|
|
202
202
|
"request": request,
|
|
203
203
|
"callback": callback,
|
|
204
204
|
"queue_start_time": queue_start_time,
|
|
205
205
|
"curl_start_time": time.time(),
|
|
206
|
-
"curl_start_ioloop_time": self.io_loop.current().time(),
|
|
206
|
+
"curl_start_ioloop_time": self.io_loop.current().time(),
|
|
207
207
|
}
|
|
208
208
|
try:
|
|
209
209
|
self._curl_setup_request(
|
|
210
210
|
curl,
|
|
211
211
|
request,
|
|
212
|
-
curl.info["buffer"], # type: ignore
|
|
213
|
-
curl.info["headers"], # type: ignore
|
|
212
|
+
curl.info["buffer"], # type: ignore[attr-defined] # FIX ME
|
|
213
|
+
curl.info["headers"], # type: ignore[attr-defined] # FIX ME
|
|
214
214
|
)
|
|
215
215
|
except Exception as e:
|
|
216
216
|
# If there was an error in setup, pass it on
|
|
@@ -236,8 +236,8 @@ class CurlAsyncHTTPClient(AsyncHTTPClient):
|
|
|
236
236
|
curl_error: int | None = None,
|
|
237
237
|
curl_message: str | None = None,
|
|
238
238
|
) -> None:
|
|
239
|
-
info = curl.info # type: ignore
|
|
240
|
-
curl.info = None # type: ignore
|
|
239
|
+
info = curl.info # type: ignore[attr-defined] # FIX ME
|
|
240
|
+
curl.info = None # type: ignore[attr-defined] # FIX ME
|
|
241
241
|
self._multi.remove_handle(curl)
|
|
242
242
|
buffer = info["buffer"]
|
|
243
243
|
if curl_error:
|
|
@@ -250,20 +250,20 @@ class CurlAsyncHTTPClient(AsyncHTTPClient):
|
|
|
250
250
|
buffer = None
|
|
251
251
|
else:
|
|
252
252
|
error = None
|
|
253
|
-
code = curl.getinfo(pycurl.HTTP_CODE)
|
|
254
|
-
effective_url = curl.getinfo(pycurl.EFFECTIVE_URL)
|
|
253
|
+
code = curl.getinfo(pycurl.HTTP_CODE) # type: ignore[no-untyped-call] # FIX ME
|
|
254
|
+
effective_url = curl.getinfo(pycurl.EFFECTIVE_URL) # type: ignore[no-untyped-call] # FIX ME
|
|
255
255
|
buffer.seek(0)
|
|
256
256
|
# the various curl timings are documented at
|
|
257
257
|
# http://curl.haxx.se/libcurl/c/curl_easy_getinfo.html
|
|
258
258
|
time_info = dict(
|
|
259
259
|
queue=info["curl_start_ioloop_time"] - info["queue_start_time"],
|
|
260
|
-
namelookup=curl.getinfo(pycurl.NAMELOOKUP_TIME),
|
|
261
|
-
connect=curl.getinfo(pycurl.CONNECT_TIME),
|
|
262
|
-
appconnect=curl.getinfo(pycurl.APPCONNECT_TIME),
|
|
263
|
-
pretransfer=curl.getinfo(pycurl.PRETRANSFER_TIME),
|
|
264
|
-
starttransfer=curl.getinfo(pycurl.STARTTRANSFER_TIME),
|
|
265
|
-
total=curl.getinfo(pycurl.TOTAL_TIME),
|
|
266
|
-
redirect=curl.getinfo(pycurl.REDIRECT_TIME),
|
|
260
|
+
namelookup=curl.getinfo(pycurl.NAMELOOKUP_TIME), # type: ignore[no-untyped-call] # FIX ME
|
|
261
|
+
connect=curl.getinfo(pycurl.CONNECT_TIME), # type: ignore[no-untyped-call] # FIX ME
|
|
262
|
+
appconnect=curl.getinfo(pycurl.APPCONNECT_TIME), # type: ignore[no-untyped-call] # FIX ME
|
|
263
|
+
pretransfer=curl.getinfo(pycurl.PRETRANSFER_TIME), # type: ignore[no-untyped-call] # FIX ME
|
|
264
|
+
starttransfer=curl.getinfo(pycurl.STARTTRANSFER_TIME), # type: ignore[no-untyped-call] # FIX ME
|
|
265
|
+
total=curl.getinfo(pycurl.TOTAL_TIME), # type: ignore[no-untyped-call] # FIX ME
|
|
266
|
+
redirect=curl.getinfo(pycurl.REDIRECT_TIME), # type: ignore[no-untyped-call] # FIX ME
|
|
267
267
|
)
|
|
268
268
|
try:
|
|
269
269
|
info["callback"](
|
|
@@ -325,8 +325,7 @@ class CurlAsyncHTTPClient(AsyncHTTPClient):
|
|
|
325
325
|
request.headers["Pragma"] = ""
|
|
326
326
|
|
|
327
327
|
encoded_headers = [
|
|
328
|
-
b"%s: %s"
|
|
329
|
-
% (native_str(k).encode("ASCII"), native_str(v).encode("ISO8859-1"))
|
|
328
|
+
b"%s: %s" % (native_str(k).encode("ASCII"), native_str(v).encode("ISO8859-1"))
|
|
330
329
|
for k, v in request.headers.get_all()
|
|
331
330
|
]
|
|
332
331
|
for line in encoded_headers:
|
|
@@ -348,7 +347,7 @@ class CurlAsyncHTTPClient(AsyncHTTPClient):
|
|
|
348
347
|
return len(b)
|
|
349
348
|
|
|
350
349
|
else:
|
|
351
|
-
write_function = buffer.write # type: ignore
|
|
350
|
+
write_function = buffer.write # type: ignore[assignment] # FIX ME
|
|
352
351
|
curl.setopt(pycurl.WRITEFUNCTION, write_function)
|
|
353
352
|
curl.setopt(pycurl.FOLLOWLOCATION, request.follow_redirects)
|
|
354
353
|
curl.setopt(pycurl.MAXREDIRS, request.max_redirects)
|
|
@@ -530,9 +529,7 @@ class CurlAsyncHTTPClient(AsyncHTTPClient):
|
|
|
530
529
|
if header_line.startswith("HTTP/"):
|
|
531
530
|
headers.clear()
|
|
532
531
|
try:
|
|
533
|
-
_version, _code, reason = httputil.parse_response_start_line(
|
|
534
|
-
header_line
|
|
535
|
-
)
|
|
532
|
+
_version, _code, reason = httputil.parse_response_start_line(header_line)
|
|
536
533
|
header_line = "X-Http-Reason: %s" % reason
|
|
537
534
|
except httputil.HTTPInputError:
|
|
538
535
|
return
|
|
@@ -345,14 +345,14 @@ def linkify(
|
|
|
345
345
|
if extra_params and not callable(extra_params):
|
|
346
346
|
extra_params = " " + extra_params.strip()
|
|
347
347
|
|
|
348
|
-
def make_link(m: typing.Match) -> str:
|
|
348
|
+
def make_link(m: typing.Match) -> str: # type: ignore[type-arg] # FIX ME
|
|
349
349
|
url = m.group(1)
|
|
350
350
|
proto = m.group(2)
|
|
351
351
|
if require_protocol and not proto:
|
|
352
|
-
return url # not protocol, no linkify
|
|
352
|
+
return url # type: ignore[no-any-return] # not protocol, no linkify # FIX ME
|
|
353
353
|
|
|
354
354
|
if proto and proto not in permitted_protocols:
|
|
355
|
-
return url # bad protocol, no linkify
|
|
355
|
+
return url # type: ignore[no-any-return] # bad protocol, no linkify # FIX ME
|
|
356
356
|
|
|
357
357
|
href = m.group(1)
|
|
358
358
|
if not proto:
|