]> git.ipfire.org Git - thirdparty/tornado.git/log
thirdparty/tornado.git
2 years agoweb: Accept all kwargs in clear_cookie 3224/head
Ben Darnell [Sat, 28 Jan 2023 19:48:47 +0000 (19:48 +0000)] 
web: Accept all kwargs in clear_cookie

In some cases it is now required to pass matching values for
samesite and secure as when the cookie was set.

clear_all_cookies is now deprecated because the name of a cookie
is no longer reliably sufficient to clear it.

Fixes #2911

2 years agoweb: List all set_cookie arguments instead of kwargs
Ben Darnell [Sat, 28 Jan 2023 19:10:16 +0000 (19:10 +0000)] 
web: List all set_cookie arguments instead of kwargs

Multiple arguments needed special cases anyway, so it's better to
just be explicit about what's supported.

set_signed_cookie still uses kwarg forwarding since we don't need
to worry about the special cases at this level and using
explicit arguments would involve duplicating defaults in multiple
places.

2 years agoweb: Rename "secure_cookie" methods to "signed_cookie"
Ben Darnell [Mon, 23 Jan 2023 18:51:53 +0000 (18:51 +0000)] 
web: Rename "secure_cookie" methods to "signed_cookie"

This more precisely states the kind of security that is provided, and
avoids confusion with the use of the word "secure" as a standard
cookie attribute and prefix.

2 years agoMerge pull request #3220 from bdarnell/update-deps
Ben Darnell [Fri, 20 Jan 2023 20:44:26 +0000 (15:44 -0500)] 
Merge pull request #3220 from bdarnell/update-deps

Update all deps

2 years agoUpdate tox to v4 3220/head
Ben Darnell [Fri, 20 Jan 2023 20:19:47 +0000 (20:19 +0000)] 
Update tox to v4

Adapt to backwards-incompatible renaming.

2 years agoUpdate most deps
Ben Darnell [Fri, 20 Jan 2023 20:05:50 +0000 (20:05 +0000)] 
Update most deps

Sphinx is pinned to <6 because of a conflict with sphinx_rtd_theme
Tox is pinned to <4 because we're affected by some backwards-incompatible
renamings in the config file.

2 years agoMerge pull request #3219 from bdarnell/consolidate-requirements
Ben Darnell [Fri, 20 Jan 2023 20:02:19 +0000 (15:02 -0500)] 
Merge pull request #3219 from bdarnell/consolidate-requirements

Consolidate maint and docs requirements files

2 years agoConsolidate maint and docs requirements files 3219/head
Ben Darnell [Fri, 20 Jan 2023 19:51:28 +0000 (19:51 +0000)] 
Consolidate maint and docs requirements files

This division was just complicating things unnecessarily.
Also adopt pip-tools instead of doing it all by hand.
No pinned versions have been changed in this commit.

2 years agoMerge pull request #3218 from bdarnell/readthedocs-config
Ben Darnell [Fri, 20 Jan 2023 19:26:57 +0000 (14:26 -0500)] 
Merge pull request #3218 from bdarnell/readthedocs-config

docs: Add config file for readthedocs

2 years agodocs: Add config file for readthedocs 3218/head
Ben Darnell [Fri, 20 Jan 2023 19:20:34 +0000 (19:20 +0000)] 
docs: Add config file for readthedocs

This moves away from web-based settings and permits per-release
changes.

2 years agoMerge pull request #3214 from tornadoweb/bdarnell-patch-1
Ben Darnell [Thu, 5 Jan 2023 16:53:07 +0000 (11:53 -0500)] 
Merge pull request #3214 from tornadoweb/bdarnell-patch-1

Create security policy document

2 years agoMerge pull request #3204 from tornadoweb/dependabot/pip/docs/certifi-2022.12.7
Ben Darnell [Thu, 5 Jan 2023 16:40:43 +0000 (11:40 -0500)] 
Merge pull request #3204 from tornadoweb/dependabot/pip/docs/certifi-2022.12.7

build(deps): bump certifi from 2022.5.18.1 to 2022.12.7 in /docs

2 years agoCreate security policy document 3214/head
Ben Darnell [Thu, 5 Jan 2023 16:40:24 +0000 (11:40 -0500)] 
Create security policy document

Fixes #3099

2 years agobuild(deps): bump certifi from 2022.5.18.1 to 2022.12.7 in /docs 3204/head
dependabot[bot] [Thu, 5 Jan 2023 16:27:36 +0000 (16:27 +0000)] 
build(deps): bump certifi from 2022.5.18.1 to 2022.12.7 in /docs

Bumps [certifi](https://github.com/certifi/python-certifi) from 2022.5.18.1 to 2022.12.7.
- [Release notes](https://github.com/certifi/python-certifi/releases)
- [Commits](https://github.com/certifi/python-certifi/compare/2022.05.18.1...2022.12.07)

---
updated-dependencies:
- dependency-name: certifi
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years agoMerge pull request #3213 from uniontech-lilinjie/master
Ben Darnell [Tue, 3 Jan 2023 16:04:08 +0000 (11:04 -0500)] 
Merge pull request #3213 from uniontech-lilinjie/master

fix typo

2 years agofix typo 3213/head
lilinjie [Tue, 3 Jan 2023 07:13:57 +0000 (15:13 +0800)] 
fix typo

Signed-off-by: lilinjie <lilinjie@uniontech.com>
2 years agoMerge pull request #3212 from meramsey/patch-1
Ben Darnell [Tue, 27 Dec 2022 20:44:17 +0000 (15:44 -0500)] 
Merge pull request #3212 from meramsey/patch-1

Update v6.2.0.rst

2 years agoUpdate v6.2.0.rst 3212/head
Michael Ramsey [Sat, 24 Dec 2022 18:44:28 +0000 (13:44 -0500)] 
Update v6.2.0.rst

fix typo

2 years agoMerge pull request #3208 from bdarnell/pin-tox
Ben Darnell [Sat, 17 Dec 2022 03:15:41 +0000 (22:15 -0500)] 
Merge pull request #3208 from bdarnell/pin-tox

ci: Various dependency-related updates

2 years agoci: Skip python 3.12 for now 3208/head
Ben Darnell [Fri, 16 Dec 2022 20:52:15 +0000 (15:52 -0500)] 
ci: Skip python 3.12 for now

The breaking changes begun by the deprecation warnings in 3.10 have
arrived, but according to https://github.com/python/cpython/issues/93453
the scope has changed somewhat (for the better, I think). Don't test
on 3.12 until we've adapted to the new plan.

2 years agotest: Catch error from get_event_loop in tearDown
Ben Darnell [Fri, 16 Dec 2022 20:07:30 +0000 (15:07 -0500)] 
test: Catch error from get_event_loop in tearDown

2 years agotest: More lenient check for localhost resolver test
Ben Darnell [Fri, 16 Dec 2022 19:56:39 +0000 (14:56 -0500)] 
test: More lenient check for localhost resolver test

A recent update to pycares appears to have made it return only
an ipv6 address for localhost.

2 years agoci: Install pinned version of tox
Ben Darnell [Fri, 16 Dec 2022 19:26:01 +0000 (14:26 -0500)] 
ci: Install pinned version of tox

2 years agoMerge pull request #3202 from bdarnell/lint-update
Ben Darnell [Mon, 28 Nov 2022 03:08:53 +0000 (22:08 -0500)] 
Merge pull request #3202 from bdarnell/lint-update

deps: Update linters

2 years agodeps: Update linters 3202/head
Ben Darnell [Mon, 28 Nov 2022 02:58:27 +0000 (21:58 -0500)] 
deps: Update linters

2 years agoMerge pull request #3201 from bdarnell/lazy-import
Ben Darnell [Mon, 28 Nov 2022 02:20:05 +0000 (21:20 -0500)] 
Merge pull request #3201 from bdarnell/lazy-import

all: Support lazy imports of submodules

2 years agoall: Support lazy imports of submodules 3201/head
Ben Darnell [Sun, 27 Nov 2022 20:06:08 +0000 (15:06 -0500)] 
all: Support lazy imports of submodules

A getattr hook in the top-level "tornado" package now imports submodules
automatically, eliminating the need to explicitly reference multiple submodules
in imports

2 years agoMerge pull request #3200 from bdarnell/expectlog
Ben Darnell [Sun, 27 Nov 2022 04:02:55 +0000 (23:02 -0500)] 
Merge pull request #3200 from bdarnell/expectlog

testing: Deprecate environment-dependent behavior in ExpectLog

2 years agotest: Skip undecorated coroutine test in py312 3200/head
Ben Darnell [Sun, 27 Nov 2022 03:29:59 +0000 (22:29 -0500)] 
test: Skip undecorated coroutine test in py312

The standard library now has its own check for this, rendering ours redundant
(and breaking our test)

2 years agotesting: Deprecate environment-dependent behavior in ExpectLog
Ben Darnell [Sun, 27 Nov 2022 02:50:04 +0000 (21:50 -0500)] 
testing: Deprecate environment-dependent behavior in ExpectLog

ExpectLog is sensitive to the difference between tornado.testing.main
(which sets the logging level to info) and most other test runners,
which do not. In the future ExpectLog will match WARNING and above
by default; matching lower levels without using the ``level`` argument
is deprecated.

Fix one test in httpserver_test.py that is affected by this.

2 years agoMerge pull request #3197 from bdarnell/pyversion-update
Ben Darnell [Sun, 20 Nov 2022 19:11:20 +0000 (14:11 -0500)] 
Merge pull request #3197 from bdarnell/pyversion-update

setup: Drop support for python 3.7

2 years agosetup: Drop support for python 3.7 3197/head
Ben Darnell [Sat, 19 Nov 2022 22:20:33 +0000 (17:20 -0500)] 
setup: Drop support for python 3.7

The main reason to drop this version before it reaches its EOL is so
that we can begin to use unittest.IsolatedAsyncioTestCase to replace
deprecated portions of the tornado.testing module.

A secondary reason is that Python 3.8 introduced support for the
samesite cookie attribute, which allows us to deprecate the
xsrf_token mechanism.

2 years agoMerge pull request #3196 from bdarnell/pyversion-update
Ben Darnell [Sat, 19 Nov 2022 22:17:36 +0000 (17:17 -0500)] 
Merge pull request #3196 from bdarnell/pyversion-update

setup: Add Python 3.11 final and 3.12 alpha to CI

2 years agosetup: Add Python 3.11 final and 3.12 alpha to CI 3196/head
Ben Darnell [Sat, 19 Nov 2022 20:59:31 +0000 (15:59 -0500)] 
setup: Add Python 3.11 final and 3.12 alpha to CI

Adapts to the deprecation of multi-argument generator.throw().

2 years agoMerge pull request #3193 from jakestambaugh/master
Ben Darnell [Sat, 15 Oct 2022 15:40:46 +0000 (11:40 -0400)] 
Merge pull request #3193 from jakestambaugh/master

Add support for parsing lists of str in config files if multiple=True

2 years agoAdd support for parsing lists of str in config files 3193/head
Jake Stambaugh [Fri, 7 Oct 2022 22:03:25 +0000 (18:03 -0400)] 
Add support for parsing lists of str in config files

2 years agoMerge pull request #3192 from jepperaskdk/master
Ben Darnell [Tue, 4 Oct 2022 01:57:24 +0000 (21:57 -0400)] 
Merge pull request #3192 from jepperaskdk/master

Changed websocket message buffer from bytes to bytearray

2 years agoChanged websocket message buffer from bytes to bytearray for performance increase 3192/head
Jeppe Rask [Mon, 3 Oct 2022 19:43:21 +0000 (21:43 +0200)] 
Changed websocket message buffer from bytes to bytearray for performance increase

2 years agoMerge pull request #3180 from tornadoweb/fix-lint
Ben Darnell [Fri, 26 Aug 2022 19:23:09 +0000 (15:23 -0400)] 
Merge pull request #3180 from tornadoweb/fix-lint

auth: Fix lint error (long line)

2 years agoauth: Fix trailing comma and lint errors 3180/head
Ben Darnell [Fri, 26 Aug 2022 19:06:18 +0000 (15:06 -0400)] 
auth: Fix trailing comma and lint errors

This slipped in with #3137 because that PR was submitted at a time when
the CI config was broken and I didn't notice the incomplete run.

2 years agoFix contextvars.Context propagation to first yield with native coroutines (#3176)
Timofey Kukushkin [Fri, 26 Aug 2022 19:05:22 +0000 (22:05 +0300)] 
Fix contextvars.Context propagation to first yield with native coroutines (#3176)

* Fix contextvars.Context propagation to first yield with native coroutines

2 years agoMerge pull request #3172 from takluyver/websocket-resolver
Ben Darnell [Fri, 26 Aug 2022 18:46:36 +0000 (14:46 -0400)] 
Merge pull request #3172 from takluyver/websocket-resolver

Allow custom resolver in WebSocketClientConnection

2 years agoMerge pull request #3169 from anilbey/typing
Ben Darnell [Fri, 26 Aug 2022 18:11:20 +0000 (14:11 -0400)] 
Merge pull request #3169 from anilbey/typing

add type-var ignore for the recently introduced mypy error

2 years agoMerge pull request #3137 from frankdu/master
Ben Darnell [Fri, 26 Aug 2022 18:09:49 +0000 (14:09 -0400)] 
Merge pull request #3137 from frankdu/master

Google OAuth2: change oauth config provision from hardcoded to develo…

2 years agoMerge pull request #3179 from tornadoweb/iostream-cleanup
Ben Darnell [Fri, 26 Aug 2022 17:45:14 +0000 (13:45 -0400)] 
Merge pull request #3179 from tornadoweb/iostream-cleanup

iostream: Remove _read_buffer_pos attribute

2 years agoiostream: Remove _read_buffer_pos attribute 3179/head
Ben Darnell [Fri, 26 Aug 2022 17:19:43 +0000 (13:19 -0400)] 
iostream: Remove _read_buffer_pos attribute

Since PR #3087, this attribute is always zero (except for temporary
usage in _consume) and can be removed.

2 years agoMerge pull request #3087 from laggardkernel/feature/cleanup-bytearray-shrink
Ben Darnell [Fri, 26 Aug 2022 17:08:13 +0000 (13:08 -0400)] 
Merge pull request #3087 from laggardkernel/feature/cleanup-bytearray-shrink

Cleanup bytearray shrink code designed for Python 2

2 years agoMerge pull request #3178 from reganto/patch-1
Ben Darnell [Fri, 26 Aug 2022 14:58:35 +0000 (10:58 -0400)] 
Merge pull request #3178 from reganto/patch-1

Fix URL plural

2 years agoFix URL plural 3178/head
Morteza Naghizadeh [Wed, 24 Aug 2022 14:33:30 +0000 (19:03 +0430)] 
Fix URL plural

2 years agoMerge pull request #3177 from spagh-eddie/patch-3
Ben Darnell [Mon, 22 Aug 2022 20:25:30 +0000 (16:25 -0400)] 
Merge pull request #3177 from spagh-eddie/patch-3

Fix typo in release notes

2 years agoFix typo in release notes 3177/head
Eddie Darling [Mon, 22 Aug 2022 17:19:28 +0000 (10:19 -0700)] 
Fix typo in release notes

3 years agoAllow custom resolver in WebSocketClientConnection 3172/head
Thomas Kluyver [Mon, 1 Aug 2022 10:51:34 +0000 (11:51 +0100)] 
Allow custom resolver in WebSocketClientConnection

3 years agoadd type-var ignore for the recent mypy error 3169/head
Anil Tuncel [Sun, 17 Jul 2022 17:36:56 +0000 (18:36 +0100)] 
add type-var ignore for the recent mypy error

3 years agoBump version number on main branch to 6.3.dev1
Ben Darnell [Mon, 4 Jul 2022 02:22:03 +0000 (22:22 -0400)] 
Bump version number on main branch to 6.3.dev1

3 years agoMerge pull request #3167 from bdarnell/6.2-final branch6.2 v6.2.0
Ben Darnell [Sun, 3 Jul 2022 22:10:16 +0000 (18:10 -0400)] 
Merge pull request #3167 from bdarnell/6.2-final

Set version number to 6.2.0

3 years agoSet version number to 6.2.0 3167/head
Ben Darnell [Sun, 3 Jul 2022 22:03:24 +0000 (18:03 -0400)] 
Set version number to 6.2.0

Closes #3165

3 years agoMerge pull request #3163 from graingert/avoid-threading-identity
Ben Darnell [Thu, 23 Jun 2022 00:26:37 +0000 (20:26 -0400)] 
Merge pull request #3163 from graingert/avoid-threading-identity

use get_running_loop to choose between call_soon and call_soon_thread…

3 years agoMerge branch 'master' into avoid-threading-identity 3163/head
Ben Darnell [Tue, 21 Jun 2022 12:47:30 +0000 (08:47 -0400)] 
Merge branch 'master' into avoid-threading-identity

3 years agoMerge pull request #3164 from graingert/patch-1
Ben Darnell [Tue, 21 Jun 2022 12:12:59 +0000 (08:12 -0400)] 
Merge pull request #3164 from graingert/patch-1

make existing_loop check atomic

3 years agomake existing_loop check atomic 3164/head
Thomas Grainger [Tue, 21 Jun 2022 07:41:38 +0000 (08:41 +0100)] 
make existing_loop check atomic

3 years agouse get_running_loop to choose between call_soon and call_soon_threadsafe
Thomas Grainger [Mon, 20 Jun 2022 09:42:19 +0000 (10:42 +0100)] 
use get_running_loop to choose between call_soon and call_soon_threadsafe

3 years agoMerge pull request #3162 from bdarnell/6.2b2 v6.2.0b2
Ben Darnell [Fri, 17 Jun 2022 20:40:41 +0000 (16:40 -0400)] 
Merge pull request #3162 from bdarnell/6.2b2

Set version to 6.2b2

3 years agoSet version to 6.2b2 3162/head
Ben Darnell [Fri, 17 Jun 2022 20:30:35 +0000 (16:30 -0400)] 
Set version to 6.2b2

3 years agoMerge pull request #3161 from tornadoweb/build-workflow-abi3
Ben Darnell [Fri, 17 Jun 2022 20:27:31 +0000 (16:27 -0400)] 
Merge pull request #3161 from tornadoweb/build-workflow-abi3

setup: Build wheels with the stable ABI (abi3)

3 years agosetup: Build wheels with the stable ABI (abi3) 3161/head
Ben Darnell [Fri, 17 Jun 2022 18:11:21 +0000 (14:11 -0400)] 
setup: Build wheels with the stable ABI (abi3)

This will produce cross-version wheels so we won't have to do
releases just to make new wheels when new versions of Python
are available.

Also modernize the build process a bit to require setuptools and use
the native "optional" flag for extensions.

3 years agoMerge pull request #3160 from bdarnell/ioloop-docs
Ben Darnell [Fri, 17 Jun 2022 18:28:57 +0000 (14:28 -0400)] 
Merge pull request #3160 from bdarnell/ioloop-docs

ioloop: Update docs for IOLoop constructor

3 years agoioloop: Update docs for IOLoop constructor 3160/head
Ben Darnell [Fri, 17 Jun 2022 17:58:10 +0000 (13:58 -0400)] 
ioloop: Update docs for IOLoop constructor

The constructor is not completely deprecated; the make_current=False
mode is still usable.

Fixes #3156

3 years agoMerge pull request #3157 from minrk/explicit-asyncio-loop
Ben Darnell [Fri, 17 Jun 2022 17:20:31 +0000 (13:20 -0400)] 
Merge pull request #3157 from minrk/explicit-asyncio-loop

Allow passing asyncio_loop argument to AsyncIOLoop

3 years agoMerge pull request #3159 from minrk/deprecation-stacklevel
Ben Darnell [Fri, 17 Jun 2022 17:18:49 +0000 (13:18 -0400)] 
Merge pull request #3159 from minrk/deprecation-stacklevel

Add stacklevel to deprecation warnings

3 years agoAdd stacklevel to deprecation warnings 3159/head
Min RK [Fri, 17 Jun 2022 09:22:53 +0000 (11:22 +0200)] 
Add stacklevel to deprecation warnings

so warnings are associated with the line where the deprecated methods are called
rather than the line where the warning itself is

3 years agotrailing comma? 3157/head
Min RK [Thu, 16 Jun 2022 14:32:37 +0000 (16:32 +0200)] 
trailing comma?

black seems to have changed its mind

3 years agoPrevent multiple IOLoops for one asyncio loop
Min RK [Thu, 16 Jun 2022 07:55:47 +0000 (09:55 +0200)] 
Prevent multiple IOLoops for one asyncio loop

3 years agoAllow passing asyncio_loop argument to AsyncIOLoop
Min RK [Wed, 15 Jun 2022 08:41:30 +0000 (10:41 +0200)] 
Allow passing asyncio_loop argument to AsyncIOLoop

allows patterns of creating and explicitly passing the asyncio loop before creating IOLoop

For example: creating a loop with the non-default event loop policy without having to set the current policy

3 years agoMerge pull request #3155 from graingert/patch-1
Ben Darnell [Tue, 14 Jun 2022 23:20:46 +0000 (19:20 -0400)] 
Merge pull request #3155 from graingert/patch-1

fix mulitple typo

3 years agofix mulitple typo 3155/head
Thomas Grainger [Mon, 13 Jun 2022 14:40:51 +0000 (15:40 +0100)] 
fix mulitple typo

3 years agoDo bytearray shrinking unconditionally in Python 3 3087/head
laggardkernel [Wed, 8 Dec 2021 11:03:29 +0000 (19:03 +0800)] 
Do bytearray shrinking unconditionally in Python 3

3 years agobuild: Run build workflow on tags v6.2.0b1
Ben Darnell [Fri, 10 Jun 2022 19:08:59 +0000 (15:08 -0400)] 
build: Run build workflow on tags

3 years agoMerge pull request #3154 from tornadoweb/build-workflow-publish
Ben Darnell [Fri, 10 Jun 2022 19:01:07 +0000 (15:01 -0400)] 
Merge pull request #3154 from tornadoweb/build-workflow-publish

Set version number to 6.2, publish wheels via GH actions

3 years agobuild: Add pypi upload (non test) for tags build-workflow-publish 3154/head
Ben Darnell [Fri, 10 Jun 2022 18:23:12 +0000 (14:23 -0400)] 
build: Add pypi upload (non test) for tags

3 years agosetup: Set readme content-type explicitly
Ben Darnell [Fri, 10 Jun 2022 18:14:23 +0000 (14:14 -0400)] 
setup: Set readme content-type explicitly

Silences a warning when uploading to pypi.

3 years agobuild: Publish to testpypi via github actions
Ben Darnell [Fri, 10 Jun 2022 16:23:48 +0000 (12:23 -0400)] 
build: Publish to testpypi via github actions

3 years agoSet version number to 6.2b1
Ben Darnell [Fri, 10 Jun 2022 16:23:33 +0000 (12:23 -0400)] 
Set version number to 6.2b1

3 years agoMerge pull request #3153 from bdarnell/relnotes62
Ben Darnell [Thu, 9 Jun 2022 21:53:26 +0000 (17:53 -0400)] 
Merge pull request #3153 from bdarnell/relnotes62

docs: Release note updates

3 years agodocs: Release note updates 3153/head
Ben Darnell [Thu, 9 Jun 2022 21:38:29 +0000 (17:38 -0400)] 
docs: Release note updates

3 years agoMerge pull request #3152 from bdarnell/docs-reqs
Ben Darnell [Thu, 9 Jun 2022 03:08:54 +0000 (23:08 -0400)] 
Merge pull request #3152 from bdarnell/docs-reqs

docs: Bump requirements

3 years agodocs: Bump requirements 3152/head
Ben Darnell [Thu, 9 Jun 2022 02:52:45 +0000 (22:52 -0400)] 
docs: Bump requirements

Mainly to pick up a security fix in urllib3.

3 years agoMerge pull request #3151 from bdarnell/relnotes62
Ben Darnell [Thu, 9 Jun 2022 02:29:17 +0000 (22:29 -0400)] 
Merge pull request #3151 from bdarnell/relnotes62

Release notes for 6.2

3 years agoRelease notes for 6.2 3151/head
Ben Darnell [Thu, 9 Jun 2022 02:14:39 +0000 (22:14 -0400)] 
Release notes for 6.2

3 years agoAdd the method to allow custom provision of OAuth credentails, while keeping the... 3137/head
Frank Du [Tue, 7 Jun 2022 15:23:08 +0000 (08:23 -0700)] 
Add the method to allow custom provision of OAuth credentails, while keeping the backwards compatibility

3 years agoGoogle OAuth2: change oauth config provision from hardcoded to developer friendly...
Frank Du [Thu, 5 May 2022 00:20:25 +0000 (17:20 -0700)] 
Google OAuth2: change oauth config provision from hardcoded to developer friendly, namely easier & clearer error tracing

3 years agoMerge pull request #3136 from graingert/remove-unreachable-if-asyncio-checks
Ben Darnell [Tue, 7 Jun 2022 01:37:03 +0000 (21:37 -0400)] 
Merge pull request #3136 from graingert/remove-unreachable-if-asyncio-checks

remove unreachable asyncio checks

3 years agoMerge pull request #3150 from bdarnell/httpclient-docs
Ben Darnell [Tue, 7 Jun 2022 01:29:46 +0000 (21:29 -0400)] 
Merge pull request #3150 from bdarnell/httpclient-docs

httpclient: Remove initialize method from docs

3 years agohttpclient: Remove initialize method from docs 3150/head
Ben Darnell [Tue, 7 Jun 2022 01:16:07 +0000 (21:16 -0400)] 
httpclient: Remove initialize method from docs

This method is not meant for public consumption; it is an
implementation detail of the construction-time magic for this class.
It was not intended to appear in documentation as if it is
the public constructor.

Fixes #3141

3 years agoMerge pull request #3149 from bdarnell/deprecate-bind
Ben Darnell [Sat, 4 Jun 2022 13:59:13 +0000 (09:59 -0400)] 
Merge pull request #3149 from bdarnell/deprecate-bind

tcpserver: Deprecate bind/start multi-process

3 years agotcpserver: Deprecate bind/start multi-process 3149/head
Ben Darnell [Fri, 3 Jun 2022 19:47:39 +0000 (15:47 -0400)] 
tcpserver: Deprecate bind/start multi-process

This is partially a casualty of the Python 3.10 deprecation
changes, although it's also something I've wanted to do for other
reasons, since it's been a very common source of user confusion.

Fixes #2801

3 years agoMerge pull request #3147 from bdarnell/docs62
Ben Darnell [Fri, 3 Jun 2022 19:29:26 +0000 (15:29 -0400)] 
Merge pull request #3147 from bdarnell/docs62

docs,demos: Update for asyncio.run pattern

3 years agoMerge pull request #3148 from bdarnell/listen-args
Ben Darnell [Fri, 3 Jun 2022 19:24:13 +0000 (15:24 -0400)] 
Merge pull request #3148 from bdarnell/listen-args

tcpserver,web: Pass more arguments through listen.

3 years agotcpserver,web: Pass more arguments through listen. 3148/head
Ben Darnell [Fri, 3 Jun 2022 15:40:31 +0000 (11:40 -0400)] 
tcpserver,web: Pass more arguments through listen.

In particular, this makes it easier to use reuse_port.

3 years agodocs,demos: Update for asyncio.run pattern 3147/head
Ben Darnell [Fri, 20 May 2022 17:04:24 +0000 (13:04 -0400)] 
docs,demos: Update for asyncio.run pattern

Adapt for Python 3.10 deprecation changes by using asyncio.run
instead of IOLoop.start throughout (except for TCPServer multi-process
docs).

Demos have all been changed but I haven't tested all of them.

3 years agoUpdate tornado/ioloop.py 3136/head
Thomas Grainger [Sun, 1 May 2022 12:50:47 +0000 (13:50 +0100)] 
Update tornado/ioloop.py