]> git.ipfire.org Git - thirdparty/tornado.git/log
thirdparty/tornado.git
3 years agobuild: Add python 3.11 alphas to CI 3105/head
Ben Darnell [Sun, 30 Jan 2022 20:01:14 +0000 (15:01 -0500)] 
build: Add python 3.11 alphas to CI

Updates #3077

3 years agooptions: Fix RST syntax
Ben Darnell [Sun, 30 Jan 2022 20:18:16 +0000 (15:18 -0500)] 
options: Fix RST syntax

3 years agoMerge pull request #3082 from Python-37/patch-1
Ben Darnell [Sun, 30 Jan 2022 19:22:15 +0000 (14:22 -0500)] 
Merge pull request #3082 from Python-37/patch-1

Add note about `parse_command_line` function

3 years agoMerge pull request #3086 from laggardkernel/feature/cleanup-finish-read
Ben Darnell [Sat, 29 Jan 2022 20:14:16 +0000 (15:14 -0500)] 
Merge pull request #3086 from laggardkernel/feature/cleanup-finish-read

Remove obsolete param 'streaming' in BaseIOStream._finish_read()

3 years agoMerge pull request #3101 from graingert/patch-1
Ben Darnell [Sat, 29 Jan 2022 19:55:23 +0000 (14:55 -0500)] 
Merge pull request #3101 from graingert/patch-1

avoid deprecated IOLoop.current() call without running loop in quickstart demo

3 years agoMerge pull request #3054 from akosthekiss/statichandlerclass-reset
Ben Darnell [Sat, 29 Jan 2022 19:49:54 +0000 (14:49 -0500)] 
Merge pull request #3054 from akosthekiss/statichandlerclass-reset

Call reset() on static_handler_class if defined in application settings

3 years agoMerge pull request #3072 from spaceone/curl-httpclient-header-encoding
Ben Darnell [Sat, 29 Jan 2022 19:17:29 +0000 (14:17 -0500)] 
Merge pull request #3072 from spaceone/curl-httpclient-header-encoding

fix[curl_httpclient]: allow HTTP header to include non-ASCII ISO8859-1 values

3 years agofixup! make gen.TimeoutError asyncio.TimeoutError 3072/head
Florian Best [Fri, 28 Jan 2022 20:29:51 +0000 (21:29 +0100)] 
fixup! make gen.TimeoutError asyncio.TimeoutError

3 years agotest[curl_httpclient]: add test case for ISO8859-1 header values
Florian Best [Fri, 28 Jan 2022 20:00:58 +0000 (21:00 +0100)] 
test[curl_httpclient]: add test case for ISO8859-1 header values

3 years agoMerge pull request #3094 from JelleZijlstra/patch-1
Ben Darnell [Fri, 28 Jan 2022 19:49:10 +0000 (14:49 -0500)] 
Merge pull request #3094 from JelleZijlstra/patch-1

Handle curses.tigetstr() returning None

3 years agofix[curl_httpclient]: allow HTTP header to include non-ASCII ISO8859-1 values
Florian Best [Sun, 17 Oct 2021 20:24:10 +0000 (22:24 +0200)] 
fix[curl_httpclient]: allow HTTP header to include non-ASCII ISO8859-1 values

3 years agoMerge pull request #3073 from minrk/asyncio-timeout
Ben Darnell [Fri, 28 Jan 2022 18:35:32 +0000 (13:35 -0500)] 
Merge pull request #3073 from minrk/asyncio-timeout

make gen.TimeoutError asyncio.TimeoutError

3 years agoMerge pull request #3068 from spaceone/get_browser_locale
Ben Darnell [Fri, 28 Jan 2022 01:45:31 +0000 (20:45 -0500)] 
Merge pull request #3068 from spaceone/get_browser_locale

Fix tornado.web.RequestHandler.get_browser_locale()

3 years agoavoid deprecated IOLoop.current() call without running loop 3101/head
Thomas Grainger [Tue, 18 Jan 2022 11:15:52 +0000 (11:15 +0000)] 
avoid deprecated IOLoop.current() call without running loop

3 years agoMerge pull request #3097 from bdarnell/py310-deprecations
Ben Darnell [Mon, 17 Jan 2022 04:13:46 +0000 (23:13 -0500)] 
Merge pull request #3097 from bdarnell/py310-deprecations

Handle deprecations in python 3.10

3 years agobuild: Add python 3.10 to CI. Remove 3.6 3097/head
Ben Darnell [Mon, 17 Jan 2022 01:37:54 +0000 (20:37 -0500)] 
build: Add python 3.10 to CI. Remove 3.6

3 years agotest: Remove twisted compatibility test
Ben Darnell [Mon, 17 Jan 2022 00:27:49 +0000 (19:27 -0500)] 
test: Remove twisted compatibility test

Now that compatibility between tornado and twisted is based on
asyncio, this test isn't very useful any more. It is broken by the
deprecations introduced in Python 3.10 and isn't worth reviving.

3 years agotest: Fix some test interactions
Ben Darnell [Fri, 31 Dec 2021 02:34:11 +0000 (21:34 -0500)] 
test: Fix some test interactions

These tests work in isolation but cause failures in the full suite
due to the leftover state of the asyncio event loop. Add cleanup to one
test and make another more tolerant of leftover state.

3 years agonetutil: Use newer ssl APIs
Ben Darnell [Wed, 29 Dec 2021 00:44:19 +0000 (19:44 -0500)] 
netutil: Use newer ssl APIs

Pass a client/server flag to all SSL context creations. This is required
to avoid deprecations in Python 3.10. This is a behavior change for
client-side connections: certificate verification and hostname checks
are now enabled in more situations (previously, the high-level
interfaces would generally enforce these requirements but the low-level
interfaces like SSLIOStream did not).

3 years agotesting: Deprecate AsyncTestCase
Ben Darnell [Tue, 28 Dec 2021 20:56:33 +0000 (15:56 -0500)] 
testing: Deprecate AsyncTestCase

The interfaces defined by this class rely on an event loop being
"current" even though it is not running; this is incompatible with
the future of the asyncio module.

It's too big a task to rewrite all the tests right now, so just
swallow deprecation warnings for "no current event loop".

3 years agotesting: Move setup_with_context_manager to testing module
Ben Darnell [Tue, 28 Dec 2021 20:17:45 +0000 (15:17 -0500)] 
testing: Move setup_with_context_manager to testing module

3 years agoasyncio: Avoid deprecation warning in start on py310
Ben Darnell [Tue, 28 Dec 2021 19:52:52 +0000 (14:52 -0500)] 
asyncio: Avoid deprecation warning in start on py310

Also avoid deprecated asyncio.get_event_loop in asyncio_test.

3 years agoioloop: Deprecate setting current ioloop for python 3.10
Ben Darnell [Tue, 28 Dec 2021 19:24:42 +0000 (14:24 -0500)] 
ioloop: Deprecate setting current ioloop for python 3.10

asyncio.get_event_loop and related methods are deprecated in python
3.10, so deprecate some IOLoop functionality to match. Specifically,
make_current, clear_current, and the IOLoop constructor are deprecated
in favor of initializing the asyncio event loop and calling
IOLoop.current(). (The IOLoop constructor is not deprecated if
make_current=False is used. This is useful in test frameworks but is
not expected to see general use).

3 years agoasyncio: Deprecate AnyThreadEventLoopPolicy
Ben Darnell [Fri, 3 Dec 2021 18:07:30 +0000 (13:07 -0500)] 
asyncio: Deprecate AnyThreadEventLoopPolicy

Implicit creation of event loops has been deprecated in Python 3.10.
Since AnyThreadEventLoopPolicy modifies the rules for implicit loop
creation, it is also deprecated.

3 years agoMerge pull request #3100 from tornadoweb/ghactions
Ben Darnell [Sun, 16 Jan 2022 21:48:42 +0000 (16:48 -0500)] 
Merge pull request #3100 from tornadoweb/ghactions

ci: move CI to github actions

3 years agoci: move CI to github actions 3100/head
Ben Darnell [Fri, 31 Dec 2021 20:26:28 +0000 (15:26 -0500)] 
ci: move CI to github actions

Our previous CI on Travis has been broken for a while due to their
move from travis-ci.org to travis-ci.com. Instead of fixing things up
there, move everything to github actions.

3 years agoHandle curses.tigetstr() returning None 3094/head
Jelle Zijlstra [Fri, 17 Dec 2021 17:25:41 +0000 (09:25 -0800)] 
Handle curses.tigetstr() returning None

Found with python/typeshed#6620

3 years agoCleanup py2 import code in demo 3086/head
laggardkernel [Wed, 8 Dec 2021 10:55:39 +0000 (18:55 +0800)] 
Cleanup py2 import code in demo

3 years agoRemove obsolete param 'streaming' in BaseIOStream._finish_read()
laggardkernel [Wed, 8 Dec 2021 10:55:18 +0000 (18:55 +0800)] 
Remove obsolete param 'streaming' in BaseIOStream._finish_read()

Parameter 'streaming' has been obsolete since a55c7fe7 in 2018-07
when `_run_read_callback()` was renamed to `_finish_read()`.
This param should be removed as well after the removal of callback
in IOStream.

3 years agoAdd note about `parse_*` function in options.py 3082/head
Python-37 [Wed, 1 Dec 2021 02:38:45 +0000 (10:38 +0800)] 
Add note about `parse_*` function in options.py

3 years agoAdd note about `parse_command_line` function
Python-37 [Mon, 29 Nov 2021 09:56:02 +0000 (17:56 +0800)] 
Add note about `parse_command_line` function

3 years agoMerge pull request #3074 from tornadoweb/dependabot/pip/docs/babel-2.9.1
Ben Darnell [Wed, 3 Nov 2021 01:12:50 +0000 (21:12 -0400)] 
Merge pull request #3074 from tornadoweb/dependabot/pip/docs/babel-2.9.1

build(deps): bump babel from 2.8.0 to 2.9.1 in /docs

3 years agobuild(deps): bump babel from 2.8.0 to 2.9.1 in /docs 3074/head
dependabot[bot] [Thu, 21 Oct 2021 18:50:02 +0000 (18:50 +0000)] 
build(deps): bump babel from 2.8.0 to 2.9.1 in /docs

Bumps [babel](https://github.com/python-babel/babel) from 2.8.0 to 2.9.1.
- [Release notes](https://github.com/python-babel/babel/releases)
- [Changelog](https://github.com/python-babel/babel/blob/master/CHANGES)
- [Commits](https://github.com/python-babel/babel/compare/v2.8.0...v2.9.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
3 years agomake gen.TimeoutError asyncio.TimeoutError 3073/head
Min RK [Tue, 19 Oct 2021 11:25:46 +0000 (13:25 +0200)] 
make gen.TimeoutError asyncio.TimeoutError

for more consistent catching of timeouts with other asyncio code

3 years agotest[web]: add test cases for Accept-Language header 3068/head
Florian Best [Fri, 15 Oct 2021 07:58:39 +0000 (09:58 +0200)] 
test[web]: add test cases for Accept-Language header

3 years agofix[web]: disallow negative quality values in Accept-Language
Florian Best [Fri, 1 Oct 2021 22:53:50 +0000 (00:53 +0200)] 
fix[web]: disallow negative quality values in Accept-Language

`Accept-Language: en-US; q=-1` is not allowed. ignore it.
Even better would be to raise HTTP 400 Bad Request.

3 years agofix[web]: fix ignoring quality=0 values in Accept-Language
Florian Best [Fri, 1 Oct 2021 22:46:07 +0000 (00:46 +0200)] 
fix[web]: fix ignoring quality=0 values in Accept-Language

`Accept-Language: en-US; q=0, de-DE; q=0.5` means that english MUST not
be selected.

3 years agofix[web]: fix optional whitespace parsing of Accept-Language header
Florian Best [Fri, 1 Oct 2021 22:42:04 +0000 (00:42 +0200)] 
fix[web]: fix optional whitespace parsing of Accept-Language header

HTTP allows OWS between parameters:
`Accept-Language: de-DE; q=0.1, en-US; q=0.2`

3 years agoCall reset() on static_handler_class if defined in application settings 3054/head
Akos Kiss [Sat, 28 Aug 2021 20:55:47 +0000 (22:55 +0200)] 
Call reset() on static_handler_class if defined in application settings

3 years agoMerge pull request #3053 from bfis/patch-2
Ben Darnell [Thu, 26 Aug 2021 18:53:13 +0000 (14:53 -0400)] 
Merge pull request #3053 from bfis/patch-2

Avoid 2GB write limitation on SSLIOStream

3 years agoiostream: Fix copy/pasted comment 3053/head
Ben Darnell [Thu, 26 Aug 2021 18:51:25 +0000 (14:51 -0400)] 
iostream: Fix copy/pasted comment

Co-authored-by: Pierce Lopez <pierce.lopez@gmail.com>
3 years agoMerge pull request #3052 from hugovk/replace-deprecated-unittest-aliases
Ben Darnell [Thu, 26 Aug 2021 18:47:27 +0000 (14:47 -0400)] 
Merge pull request #3052 from hugovk/replace-deprecated-unittest-aliases

Replace deprecated unittest aliases

3 years agoMerge pull request #3048 from mivade/httpfile-type-hints
Ben Darnell [Thu, 26 Aug 2021 18:32:15 +0000 (14:32 -0400)] 
Merge pull request #3048 from mivade/httpfile-type-hints

Type hint HTTPFile attributes

3 years agoAvoid 2GB write limitation on SSLIOStream
bfis [Tue, 24 Aug 2021 10:43:19 +0000 (12:43 +0200)] 
Avoid 2GB write limitation on SSLIOStream

3 years agoReplace deprecated unittest aliases 3052/head
Hugo van Kemenade [Thu, 19 Aug 2021 10:21:09 +0000 (13:21 +0300)] 
Replace deprecated unittest aliases

4 years agoType hint HTTPFile attributes 3048/head
Michael V. DePalatis [Tue, 3 Aug 2021 15:04:00 +0000 (09:04 -0600)] 
Type hint HTTPFile attributes

4 years agoMerge pull request #3041 from samm0ss/sam/feat/encoding-gzip-case-insensitive
Ben Darnell [Fri, 9 Jul 2021 18:05:14 +0000 (14:05 -0400)] 
Merge pull request #3041 from samm0ss/sam/feat/encoding-gzip-case-insensitive

Fix case-sensitivity for Content-Encoding: gzip. as per rfc7231 the C…

4 years agoFix case-sensitivity for Content-Encoding: gzip. as per rfc7231 the Content-Encoding... 3041/head
SamvanLeipsig [Thu, 1 Jul 2021 11:20:24 +0000 (13:20 +0200)] 
Fix case-sensitivity for Content-Encoding: gzip. as per rfc7231 the Content-Encoding values are case-insensitive https://datatracker.ietf.org/doc/html/rfc7231#section-3.1.2.1

4 years agoPeriodicCallback: support async/coroutine callback (#2924)
Pierce Lopez [Sun, 30 May 2021 15:33:14 +0000 (11:33 -0400)] 
PeriodicCallback: support async/coroutine callback (#2924)

ISSUE: https://github.com/tornadoweb/tornado/issues/2828

* ioloop: call_later() and call_at() take any Callable coroutine or plain, returning any type

Co-authored-by: agnewee <agnewee@gmail.com>
4 years agoMerge pull request #3010 from alexmv/is_valid_ip
Ben Darnell [Sat, 15 May 2021 19:24:25 +0000 (15:24 -0400)] 
Merge pull request #3010 from alexmv/is_valid_ip

is_valid_ip: Do not raise exceptions on too-long input.

4 years agois_valid_ip: Do not raise exceptions on too-long input. 3010/head
Alex Vandiver [Wed, 7 Apr 2021 20:11:15 +0000 (13:11 -0700)] 
is_valid_ip: Do not raise exceptions on too-long input.

is_valid_ip calls `socket.getaddrinfo` with `socket.AI_NUMERICHOST` on
the potential "ip"; even though IP addresses are not hostnames and do
not use the `idna` encoding, `socket.getaddrinfo` will raise
UnicodeError if the potential "ip" is longer than 63 characters long,
the RFC-mandated max hostname length.

Catch these UnicodeErrors and return false for too-long IPs, rather
than raising an exception.

4 years agoMerge pull request #3025 from mivade/periodic-callback-timedelta
Ben Darnell [Sun, 9 May 2021 16:27:35 +0000 (12:27 -0400)] 
Merge pull request #3025 from mivade/periodic-callback-timedelta

Accept timedelta objects in PeriodicCallback

4 years agoUpdate docstring 3025/head
Michael V. DePalatis [Wed, 5 May 2021 15:55:24 +0000 (09:55 -0600)] 
Update docstring

4 years agoOptionally accept a timedelta in PeriodicCallback
Michael V. DePalatis [Wed, 5 May 2021 15:53:49 +0000 (09:53 -0600)] 
Optionally accept a timedelta in PeriodicCallback

4 years agoMerge pull request #3015 from tornadoweb/dependabot/pip/maint/py-1.10.0
Ben Darnell [Wed, 21 Apr 2021 19:58:33 +0000 (15:58 -0400)] 
Merge pull request #3015 from tornadoweb/dependabot/pip/maint/py-1.10.0

build(deps): bump py from 1.9.0 to 1.10.0 in /maint

4 years agobuild(deps): bump py from 1.9.0 to 1.10.0 in /maint 3015/head
dependabot[bot] [Tue, 20 Apr 2021 17:16:45 +0000 (17:16 +0000)] 
build(deps): bump py from 1.9.0 to 1.10.0 in /maint

Bumps [py](https://github.com/pytest-dev/py) from 1.9.0 to 1.10.0.
- [Release notes](https://github.com/pytest-dev/py/releases)
- [Changelog](https://github.com/pytest-dev/py/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/py/compare/1.9.0...1.10.0)

Signed-off-by: dependabot[bot] <support@github.com>
4 years agoMerge pull request #3006 from tornadoweb/dependabot/pip/docs/pygments-2.7.4
Ben Darnell [Sat, 3 Apr 2021 16:36:51 +0000 (12:36 -0400)] 
Merge pull request #3006 from tornadoweb/dependabot/pip/docs/pygments-2.7.4

build(deps): bump pygments from 2.7.2 to 2.7.4 in /docs

4 years agobuild(deps): bump pygments from 2.7.2 to 2.7.4 in /docs 3006/head
dependabot[bot] [Tue, 30 Mar 2021 02:01:42 +0000 (02:01 +0000)] 
build(deps): bump pygments from 2.7.2 to 2.7.4 in /docs

Bumps [pygments](https://github.com/pygments/pygments) from 2.7.2 to 2.7.4.
- [Release notes](https://github.com/pygments/pygments/releases)
- [Changelog](https://github.com/pygments/pygments/blob/master/CHANGES)
- [Commits](https://github.com/pygments/pygments/compare/2.7.2...2.7.4)

Signed-off-by: dependabot[bot] <support@github.com>
4 years agoMerge pull request #3000 from GeekDuanLian/patch-1
Ben Darnell [Sat, 20 Mar 2021 15:46:43 +0000 (11:46 -0400)] 
Merge pull request #3000 from GeekDuanLian/patch-1

Allowed set max_body_size to 0

4 years agoMerge pull request #3003 from tornadoweb/dependabot/pip/docs/jinja2-2.11.3
Ben Darnell [Sat, 20 Mar 2021 15:45:45 +0000 (11:45 -0400)] 
Merge pull request #3003 from tornadoweb/dependabot/pip/docs/jinja2-2.11.3

build(deps): bump jinja2 from 2.11.2 to 2.11.3 in /docs

4 years agoMerge pull request #2996 from madsbk/typed_memoryviews
Ben Darnell [Sat, 20 Mar 2021 15:38:37 +0000 (11:38 -0400)] 
Merge pull request #2996 from madsbk/typed_memoryviews

BaseIOStream.write(): support typed memoryviews

4 years agobuild(deps): bump jinja2 from 2.11.2 to 2.11.3 in /docs 3003/head
dependabot[bot] [Sat, 20 Mar 2021 05:20:28 +0000 (05:20 +0000)] 
build(deps): bump jinja2 from 2.11.2 to 2.11.3 in /docs

Bumps [jinja2](https://github.com/pallets/jinja) from 2.11.2 to 2.11.3.
- [Release notes](https://github.com/pallets/jinja/releases)
- [Changelog](https://github.com/pallets/jinja/blob/master/CHANGES.rst)
- [Commits](https://github.com/pallets/jinja/compare/2.11.2...2.11.3)

Signed-off-by: dependabot[bot] <support@github.com>
4 years agoIs this okay 3000/head
Sakuya [Tue, 16 Mar 2021 05:31:49 +0000 (13:31 +0800)] 
Is this okay

4 years agoBut this is not beautiful
Sakuya [Tue, 16 Mar 2021 05:22:18 +0000 (13:22 +0800)] 
But this is not beautiful

4 years agowhat
Sakuya [Mon, 15 Mar 2021 21:06:24 +0000 (05:06 +0800)] 
what

4 years agofix E127
Sakuya [Mon, 15 Mar 2021 20:44:19 +0000 (04:44 +0800)] 
fix E127

4 years agofix line too long
Sakuya [Mon, 15 Mar 2021 20:28:53 +0000 (04:28 +0800)] 
fix line too long

4 years agoAllowed set max_body_size to 0
Sakuya [Mon, 15 Mar 2021 20:11:18 +0000 (04:11 +0800)] 
Allowed set max_body_size to 0

4 years agoBaseIOStream.write(): support typed memoryview 2996/head
Mads R. B. Kristensen [Tue, 2 Mar 2021 09:52:29 +0000 (10:52 +0100)] 
BaseIOStream.write(): support typed memoryview

Making sure that ``len(data) == data.nbytes`` by casting
memoryviews to bytes.

4 years agoMerge pull request #2948 from eltoder/feature/websocket-handler-stream-cleanup
Ben Darnell [Thu, 4 Feb 2021 02:40:24 +0000 (21:40 -0500)] 
Merge pull request #2948 from eltoder/feature/websocket-handler-stream-cleanup

Remove WebSocketHandler.stream.

4 years agoMerge pull request #2974 from youguanxinqing/issue-2969
Ben Darnell [Thu, 4 Feb 2021 02:35:15 +0000 (21:35 -0500)] 
Merge pull request #2974 from youguanxinqing/issue-2969

testing: Add 'address' keyword to control bound address #2969

4 years agoMerge pull request #2983 from kriskros341/changes
Ben Darnell [Thu, 4 Feb 2021 02:17:25 +0000 (21:17 -0500)] 
Merge pull request #2983 from kriskros341/changes

Dict support for WebSocketClientConnection.write_message method

Fixes #2982

4 years agoMerge pull request #2970 from bfis/patch-1
Ben Darnell [Thu, 28 Jan 2021 14:54:56 +0000 (09:54 -0500)] 
Merge pull request #2970 from bfis/patch-1

Avoid 2GB read limitation on SSLIOStream

4 years agoUppercase A in Any 2983/head
kriskros341 [Wed, 27 Jan 2021 15:37:05 +0000 (16:37 +0100)] 
Uppercase A in Any

4 years agowrite_message method of WebSocketClientConnection now accepts dict as input
kriskros341 [Wed, 27 Jan 2021 13:36:35 +0000 (14:36 +0100)] 
write_message method of WebSocketClientConnection now accepts dict as input

4 years agowrite_message method of WebSocketClientConnection now accepts dict as input
kriskros341 [Wed, 27 Jan 2021 13:24:17 +0000 (14:24 +0100)] 
write_message method of WebSocketClientConnection now accepts dict as input

4 years agoMerge pull request #2978 from youguanxinqing/issue-2977
Ben Darnell [Wed, 13 Jan 2021 12:52:20 +0000 (07:52 -0500)] 
Merge pull request #2978 from youguanxinqing/issue-2977

should use python3 unicode in 'blog' demo #2977

4 years agoleave previous versionchanged 2974/head
youguanxinqing [Tue, 12 Jan 2021 10:53:54 +0000 (18:53 +0800)] 
leave previous versionchanged

4 years agoleave previous versionchanged
youguanxinqing [Tue, 12 Jan 2021 10:52:33 +0000 (18:52 +0800)] 
leave previous versionchanged

4 years agoshould use python3 unicode in 'blog' demo #2977 2978/head
youguanxinqing [Tue, 12 Jan 2021 10:35:38 +0000 (18:35 +0800)] 
should use python3 unicode in 'blog' demo #2977

4 years agochange comment
youguanxinqing [Tue, 12 Jan 2021 01:51:27 +0000 (09:51 +0800)] 
change comment

4 years agoAdd comment explaining workaround 2970/head
bfis [Mon, 11 Jan 2021 16:49:33 +0000 (17:49 +0100)] 
Add comment explaining workaround

4 years agoformat code according to result of flake8 check
youguanxinqing [Mon, 11 Jan 2021 15:01:04 +0000 (23:01 +0800)] 
format code according to result of flake8 check

4 years agoAdd 'address' keyword control binded address #2969
youguanxinqing [Mon, 11 Jan 2021 14:35:20 +0000 (22:35 +0800)] 
Add 'address' keyword control binded address #2969

4 years agoRemove WebSocketHandler.stream. 2948/head
Eugene Toder [Tue, 3 Nov 2020 03:04:00 +0000 (22:04 -0500)] 
Remove WebSocketHandler.stream.

It was no longer used and always set to None.

4 years agoMerge pull request #2965 from timgates42/bugfix_typo_authenticate
Ben Darnell [Sat, 9 Jan 2021 21:13:26 +0000 (16:13 -0500)] 
Merge pull request #2965 from timgates42/bugfix_typo_authenticate

docs: fix simple typo, authentiate -> authenticate

4 years agoMerge pull request #2972 from bdarnell/wsgi-docstring
Ben Darnell [Sat, 9 Jan 2021 21:12:16 +0000 (16:12 -0500)] 
Merge pull request #2972 from bdarnell/wsgi-docstring

wsgi: Update docstring example for python 3

4 years agoMerge pull request #2963 from sk1p/issue-2034
Ben Darnell [Sat, 9 Jan 2021 21:10:14 +0000 (16:10 -0500)] 
Merge pull request #2963 from sk1p/issue-2034

WaitIterator: don't re-use _running_future

4 years agowsgi: Update docstring example for python 3 2972/head
Ben Darnell [Sat, 9 Jan 2021 20:52:34 +0000 (15:52 -0500)] 
wsgi: Update docstring example for python 3

Fixes #2960

4 years agoMerge pull request #2971 from bdarnell/only-initialize-existing-locales
Ben Darnell [Sat, 9 Jan 2021 20:06:33 +0000 (15:06 -0500)] 
Merge pull request #2971 from bdarnell/only-initialize-existing-locales

locale: Only try to load locales that exist

4 years agolocale: Format with black 2971/head
Ben Darnell [Sat, 9 Jan 2021 16:34:58 +0000 (11:34 -0500)] 
locale: Format with black

4 years agoRemove trailing whitespace
bfis [Wed, 6 Jan 2021 13:16:19 +0000 (14:16 +0100)] 
Remove trailing whitespace

4 years agoAvoid 2GB read limitation on SSLIOStream
bfis [Wed, 6 Jan 2021 12:22:04 +0000 (13:22 +0100)] 
Avoid 2GB read limitation on SSLIOStream

4 years agodocs: fix simple typo, authentiate -> authenticate 2965/head
Tim Gates [Mon, 21 Dec 2020 20:49:51 +0000 (07:49 +1100)] 
docs: fix simple typo, authentiate -> authenticate

There is a small typo in tornado/netutil.py.

Should read `authenticate` rather than `authentiate`.

4 years agoFix return type of _return_result 2963/head
Alexander Clausen [Sat, 12 Dec 2020 18:34:23 +0000 (19:34 +0100)] 
Fix return type of _return_result

4 years agoWaitIterator: don't re-use _running_future
Alexander Clausen [Sat, 12 Dec 2020 05:58:06 +0000 (06:58 +0100)] 
WaitIterator: don't re-use _running_future

When used with asyncio.Future, WaitIterator may skip indices in some
cases. This is caused by multiple _return_result calls after another,
without having the chain_future call finish in between. This is fixed
here by not hanging on to the _running_future anymore, which forces
subsequent _return_result calls to add to _finished, instead of causing
the previous result to be silently dropped.

Fixes #2034

4 years agoIssue #2954: prevent logging error messages for not existing translation files 2956/head
Florian Best [Thu, 19 Nov 2020 09:45:28 +0000 (10:45 +0100)] 
Issue #2954: prevent logging error messages for not existing translation files

Every not existing translation file for the existing locales logged an error message:
Cannot load translation for 'ps': [Errno 2] No such file or directory: '/usr/share/locale/ps/LC_MESSAGES/foo.mo'

4 years agoMerge pull request #2932 from novanauliazami/auth
Ben Darnell [Tue, 3 Nov 2020 02:28:30 +0000 (21:28 -0500)] 
Merge pull request #2932 from novanauliazami/auth

Update how to register application with Google

4 years agoMerge pull request #2936 from eltoder/patch-1
Ben Darnell [Tue, 3 Nov 2020 02:26:16 +0000 (21:26 -0500)] 
Merge pull request #2936 from eltoder/patch-1

Fix await vs yield in the example

4 years agoMerge pull request #2946 from bdarnell/deps
Ben Darnell [Tue, 3 Nov 2020 02:09:55 +0000 (21:09 -0500)] 
Merge pull request #2946 from bdarnell/deps

Multiple dependency-related updates