]>
git.ipfire.org Git - thirdparty/tornado.git/log
Sai Rahul Poruri [Sat, 12 Sep 2020 12:27:53 +0000 (13:27 +0100)]
CLN : Remove utf-8 coding cookies in source files
On Python 3, utf-8 is the default python source code encoding. so, the
coding cookies on files that specify utf-8 are not needed anymore.
modified: tornado/_locale_data.py
modified: tornado/locale.py
modified: tornado/test/curl_httpclient_test.py
modified: tornado/test/httpclient_test.py
modified: tornado/test/httputil_test.py
modified: tornado/test/options_test.py
modified: tornado/test/util_test.py
Ben Darnell [Wed, 2 Sep 2020 19:07:05 +0000 (15:07 -0400)]
Merge pull request #2906 from bdarnell/docs-pin
docs: Pin version of sphinxcontrib-asyncio
Ben Darnell [Tue, 1 Sep 2020 20:54:34 +0000 (16:54 -0400)]
docs: Pin version of sphinxcontrib-asyncio
The just-released version 0.3.0 is incompatible with our older pinned
version of sphinx.
Ben Darnell [Wed, 2 Sep 2020 18:50:10 +0000 (14:50 -0400)]
Merge pull request #2902 from lilydjwg/master
curl_httpclient: set CURLOPT_PROXY to NULL if pycurl supports it
依云 [Tue, 28 Jul 2020 14:09:45 +0000 (22:09 +0800)]
curl_httpclient: set CURLOPT_PROXY to NULL if pycurl supports it
This restores curl's default behaviour: use environment variables.
This option was set to "" to disable proxy in
905a215a286041c986005859c378c0445c127cbb but curl uses environment
variables by default.
Ben Darnell [Fri, 24 Jul 2020 16:45:35 +0000 (12:45 -0400)]
Merge pull request #2889 from kinow/update-callback-text-run_on_executor
Remove text about callback (removed) in run_on_executor
Bruno P. Kinoshita [Mon, 13 Jul 2020 21:34:57 +0000 (09:34 +1200)]
Remove text about callback (removed) in run_on_executor
Ben Darnell [Mon, 29 Jun 2020 01:11:57 +0000 (21:11 -0400)]
Merge pull request #2885 from bdarnell/deflake-test
test: Use larger time values in testing_test
Ben Darnell [Sun, 28 Jun 2020 19:12:29 +0000 (15:12 -0400)]
test: Use larger time values in testing_test
This test was flaky on appveyor. Also expand comments about what
exactly the test is doing.
Ben Darnell [Sat, 27 Jun 2020 14:12:46 +0000 (10:12 -0400)]
Merge pull request #2884 from bdarnell/remove-cloexec
platform: Remove obsolete functions
Ben Darnell [Fri, 26 Jun 2020 22:57:31 +0000 (18:57 -0400)]
iostream,platform: Remove _set_nonblocking function
This functionality is now provided directly in the `os` module.
Ben Darnell [Fri, 26 Jun 2020 21:28:04 +0000 (17:28 -0400)]
platform: Remove tornado.platform.auto.set_close_exec
This function is obsolete: Since python 3.4, file descriptors created
by python are non-inheritable by default (and in the event you create
a file descriptor another way, a standard function os.set_inheritable
is available).
The windows implementation of this function was also apparently
broken, but this went unnoticed because the default behavior on
windows is for file descriptors to be non-inheritable.
Fixes #2867
Ben Darnell [Sat, 20 Jun 2020 19:42:31 +0000 (15:42 -0400)]
Merge pull request #2881 from bdarnell/auth-examples
auth: Fix example code
Ben Darnell [Sat, 20 Jun 2020 17:09:59 +0000 (13:09 -0400)]
auth: Fix example code
Continuation of #2811
The oauth2 version of authorize_redirect is no longer a coroutine, so
don't use await in example code. The oauth1 version is still a
coroutine, but one twitter example was incorrectly calling it with
yield instead of await.
Ben Darnell [Sat, 20 Jun 2020 17:07:45 +0000 (13:07 -0400)]
Merge pull request #2880 from bdarnell/process-test2
test: Use default timeouts in sigchild test
Ben Darnell [Sat, 20 Jun 2020 17:02:34 +0000 (13:02 -0400)]
Merge pull request #2811 from bn0ir/master
Fix Google OAuth example
Ben Darnell [Sat, 20 Jun 2020 16:52:44 +0000 (12:52 -0400)]
test: Use default timeouts in sigchild test
The 1s timeout used here has become flaky with the introduction of a
sleep (before the timeout even starts).
Ben Darnell [Sat, 20 Jun 2020 14:02:53 +0000 (10:02 -0400)]
Merge pull request #2879 from bdarnell/template-docs
template: Clarify docs on escaping
Ben Darnell [Fri, 19 Jun 2020 21:28:46 +0000 (17:28 -0400)]
Merge pull request #2814 from Recursing/patch-1
Standardize type documentation for HTTPRequest init
Ben Darnell [Fri, 19 Jun 2020 21:27:58 +0000 (17:27 -0400)]
template: Clarify docs on escaping
Originally from #2831, which went to the wrong branch.
Ben Darnell [Fri, 19 Jun 2020 20:39:12 +0000 (16:39 -0400)]
Merge pull request #2863 from Agnewee/hotfix/stop-ping-callback
Stop ping_callback if websocket client specifies ping_interval
Ben Darnell [Fri, 19 Jun 2020 19:55:23 +0000 (15:55 -0400)]
Merge pull request #2874 from jeffhunter/types
fix types for max_age_days and expires_days parameters
Ben Darnell [Fri, 19 Jun 2020 19:45:15 +0000 (15:45 -0400)]
Merge pull request #2878 from bdarnell/fix-process-test
test: Add a sleep to deflake a test
Ben Darnell [Fri, 19 Jun 2020 19:24:03 +0000 (15:24 -0400)]
ci: Allow failures on nightly python due to cffi incompatibility
Ben Darnell [Fri, 19 Jun 2020 18:59:46 +0000 (14:59 -0400)]
ci: Drop tox-venv
Its README says it is mostly obsolete due to improvements in
virtualenv. Using it appears to cause problems related to
https://github.com/pypa/setuptools/issues/1934 because virtualenv
installs the wheel package by default but venv doesn't.
Ben Darnell [Fri, 19 Jun 2020 18:36:36 +0000 (14:36 -0400)]
test: Add a sleep to deflake a test
Not sure why this has recently started happening in some environments,
but killing a process too soon causes the wrong exit status in some
python builds on macOS.
Jeff Hunter [Tue, 9 Jun 2020 19:58:09 +0000 (12:58 -0700)]
fix types for max_age_days and expires_days parameters
Ben Darnell [Mon, 25 May 2020 02:23:09 +0000 (22:23 -0400)]
Merge pull request #2859 from noviluni/fix_some_typos
Fix some typos
agnewee [Fri, 15 May 2020 10:13:53 +0000 (18:13 +0800)]
stop ping_callback
marc [Fri, 15 May 2020 08:21:56 +0000 (10:21 +0200)]
revert genericize change
marc [Tue, 12 May 2020 13:43:20 +0000 (15:43 +0200)]
fix typos
Ben Darnell [Thu, 14 May 2020 21:42:48 +0000 (17:42 -0400)]
Merge pull request #2861 from noviluni/fix_E741
fix new E741 detected cases
marc [Thu, 14 May 2020 11:00:28 +0000 (13:00 +0200)]
fix new E741 detected cases
Ben Darnell [Mon, 11 May 2020 17:27:16 +0000 (13:27 -0400)]
Merge pull request #2857 from bdarnell/fix-docs-pin
Revert "docs: Use python 3.7 via conda for readthedocs builds"
Ben Darnell [Mon, 11 May 2020 17:09:54 +0000 (13:09 -0400)]
Revert "docs: Use python 3.7 via conda for readthedocs builds"
This reverts commit
e7e31e5642ae56da3f768d9829036eab99f0c988 .
We were using conda to get access to python 3.7 before rtd supported
it in their regular builds, but this led to problems pinning a
specific version of sphinx. See
https://github.com/readthedocs/readthedocs.org/issues/6870
Ben Darnell [Sun, 26 Apr 2020 21:52:24 +0000 (17:52 -0400)]
Merge pull request #2847 from tornadoweb/bdarnell-patch-1
iostream: Update comment
Flavio Garcia [Sun, 26 Apr 2020 20:18:26 +0000 (16:18 -0400)]
Added default User-Agent to the simple http client if not provided.
The User-Agent format is "Tornado\{Tornado_Version}".
If self.request.user_agent isn't set and self.request.headers has
no User-Agent in it's keys the default User-Agent is added.
Fixes: #2702
Ben Darnell [Sun, 26 Apr 2020 20:14:45 +0000 (16:14 -0400)]
Merge pull request #2797 from garetht/nested-doc-fix
Fix syntax error in nested routing example
Ben Darnell [Sun, 26 Apr 2020 20:14:10 +0000 (16:14 -0400)]
Merge pull request #2796 from jbampton/fix-word-case
Fix case of JavaScript, GitHub and CSS.
Ben Darnell [Sun, 26 Apr 2020 20:12:26 +0000 (16:12 -0400)]
iostream: Update comment
Update comment from #2690 about ssl module exceptions.
Ben Darnell [Sun, 26 Apr 2020 20:10:30 +0000 (16:10 -0400)]
Merge pull request #2690 from kleptog/bug2689
SSLIOStream: Handle CertificateErrors like other errors
Ben Darnell [Fri, 6 Mar 2020 01:35:19 +0000 (20:35 -0500)]
Merge pull request #2821 from tornadoweb/bdarnell-patch-1
maint: Bump bleach version for a security fix
Ben Darnell [Wed, 4 Mar 2020 04:07:11 +0000 (23:07 -0500)]
maint: Bump bleach version for a security fix
Ben Darnell [Wed, 4 Mar 2020 02:57:43 +0000 (21:57 -0500)]
Merge pull request #2820 from bdarnell/relnotes-master
Master branch release notes for version 6.0.4
Ben Darnell [Tue, 3 Mar 2020 21:46:32 +0000 (16:46 -0500)]
Master branch release notes for version 6.0.4
Ben Darnell [Mon, 2 Mar 2020 19:21:06 +0000 (14:21 -0500)]
Merge pull request #2818 from bdarnell/fix-travis
ci: Fix travis.yml
Min RK [Thu, 27 Feb 2020 10:32:58 +0000 (11:32 +0100)]
travis-ci.com doesn't like it when you have matrix and jobs
.org still allows this for some reason
Ben Darnell [Mon, 2 Mar 2020 18:48:49 +0000 (13:48 -0500)]
Merge pull request #2812 from jrbourbeau/py38-setup-classifier
Add Python 3.8 clasifier to setup.py
Recursing [Fri, 21 Feb 2020 12:15:59 +0000 (12:15 +0000)]
Standardize type documentation for HTTPRequest init
James Bourbeau [Wed, 19 Feb 2020 19:20:45 +0000 (13:20 -0600)]
Add Python 3.8 clasifier to setup.py
bn0ir [Fri, 14 Feb 2020 12:37:52 +0000 (17:37 +0500)]
Fix Google OAuth example (from 6.0 OAuth2Mixin->authorize_redirect is an ordinary synchronous function)
Ben Darnell [Sat, 1 Feb 2020 21:44:42 +0000 (16:44 -0500)]
Merge pull request #2805 from tornadoweb/resolve-pending
iostream: Resolve pending reads on stream close
Ben Darnell [Sat, 1 Feb 2020 17:49:13 +0000 (12:49 -0500)]
iostream: Expand comments around recent subtle changes
Ben Darnell [Mon, 5 Aug 2019 01:34:32 +0000 (21:34 -0400)]
iostream: Add tests for behavior around close with read_until
Updates #2719
Min RK [Fri, 2 Aug 2019 09:20:00 +0000 (11:20 +0200)]
catch UnsatisfiableReadError in close
Min RK [Thu, 1 Aug 2019 11:53:56 +0000 (13:53 +0200)]
avoid premature _check_closed in _start_read
_start_read can resolve with _try_inline_read, which can succeed even if the stream has been closed
if the buffer has been populated by a prior read
preserve the fix for asserts being hit when dealing with closed sockets
Min RK [Thu, 1 Aug 2019 11:51:12 +0000 (13:51 +0200)]
iostream: resolve reads that may be completed while closing
fixes issue that a read may fail with StreamClosedError
if stream is closed mid-read
Ben Darnell [Sun, 19 Jan 2020 22:58:40 +0000 (17:58 -0500)]
Merge pull request #2799 from tornadoweb/wintest
Improve tests on windows
Ben Darnell [Sun, 19 Jan 2020 22:37:14 +0000 (17:37 -0500)]
asyncio: AnyThreadEventLoopPolicy should always use selectors on windows
Ben Darnell [Sun, 19 Jan 2020 20:19:45 +0000 (15:19 -0500)]
ci: Add python 3.8 to windows CI
Ben Darnell [Sun, 19 Jan 2020 20:11:54 +0000 (15:11 -0500)]
testing: Add level argument to ExpectLog
This makes it possible for tests to be a little more precise, and also
makes them less dependent on exactly how the test is run (runtests.py
sets the logging level to info, but when running tests directly from
an editor it may use the default of warnings-only).
CI only runs the tests with runtests.py, so this might regress, but I'm
not building anything to prevent that yet (options include running the
tests differently in CI or making ExpectLog always use a fixed log
configuration instead of picking up the current one)
Ben Darnell [Sun, 19 Jan 2020 16:00:06 +0000 (11:00 -0500)]
test: Add hasattr check for SIGCHLD
This name is not present on all platforms
Ben Darnell [Sun, 19 Jan 2020 15:59:27 +0000 (10:59 -0500)]
test: Add some more skips on windows
Alternate resolvers behave differently on this platform for unknown
reasons.
Ben Darnell [Sat, 18 Jan 2020 23:24:03 +0000 (18:24 -0500)]
test: Use selector event loop on windows.
This gets most of the tests working again on windows with py38.
Ben Darnell [Sat, 2 Nov 2019 21:29:29 +0000 (17:29 -0400)]
test: Add gitattributes for test data files
This ensures that the tests pass on Windows regardless of the user's git
CRLF settings.
Gareth T [Tue, 24 Dec 2019 12:30:35 +0000 (07:30 -0500)]
Fix syntax error in nested routing example
John Bampton [Mon, 23 Dec 2019 22:21:43 +0000 (08:21 +1000)]
Fix case of JavaScript, GitHub and CSS.
Ben Darnell [Sun, 8 Dec 2019 21:01:27 +0000 (16:01 -0500)]
Merge pull request #2783 from kinow/fix-1824
Use bcrypt's checkpw instead of == in demo blog app
Bruno P. Kinoshita [Fri, 29 Nov 2019 10:49:35 +0000 (23:49 +1300)]
use bcrypt's checkpw instead of ==
Ben Darnell [Sat, 23 Nov 2019 20:48:43 +0000 (15:48 -0500)]
Merge pull request #2780 from bdarnell/lint-updates
lint: Update black and mypy
Ben Darnell [Mon, 4 Nov 2019 01:35:01 +0000 (20:35 -0500)]
lint: Use newer mypy
This required some minor code changes, mainly some adjustments in tests
(which are now analyzed more thoroughly in spite of being mostly
unannotated), and some changes to placement of type:ignore comments.
Ben Darnell [Sun, 3 Nov 2019 22:23:04 +0000 (17:23 -0500)]
lint: Upgrade to new version of black
Ben Darnell [Sun, 3 Nov 2019 22:18:54 +0000 (17:18 -0500)]
build: Run docs and lint on py38
This requires moving some noqa comments due to 3.8's changes to the
ast module.
Mike DePalatis [Sat, 23 Nov 2019 19:42:56 +0000 (12:42 -0700)]
web: Update hashing algorithm in StaticFileHandler (#2778)
Addresses #2776.
Ben Darnell [Sat, 23 Nov 2019 18:08:34 +0000 (13:08 -0500)]
Merge pull request #2777 from mivade/remove-speedups-py2-support
Housekeeping: Remove legacy Python support in speedups.c
Ben Darnell [Sat, 23 Nov 2019 17:25:41 +0000 (12:25 -0500)]
Merge pull request #2779 from bdarnell/ci-fix
ci: Don't run the full test suite on python 3.5.2
Ben Darnell [Sat, 23 Nov 2019 17:00:51 +0000 (12:00 -0500)]
ci: Don't run full test suite on python 3.5.2
Michael V. DePalatis [Thu, 21 Nov 2019 19:31:55 +0000 (12:31 -0700)]
Remove legacy Python support in speedups.c
Ben Darnell [Tue, 12 Nov 2019 02:49:40 +0000 (21:49 -0500)]
Merge pull request #2772 from ploxiln/fork_doc_exit
process: correct docs of fork_processes exit behavior
Pierce Lopez [Sun, 10 Nov 2019 17:43:27 +0000 (12:43 -0500)]
process: correct docs of fork_processes exit behavior
fixes #2771
Ben Darnell [Sun, 3 Nov 2019 22:08:52 +0000 (17:08 -0500)]
Merge pull request #2768 from bdarnell/ci-revamp
build: Revamp test/CI configuration
Ben Darnell [Sun, 3 Nov 2019 20:09:18 +0000 (15:09 -0500)]
build: Revamp test/CI configuration
Reduce tox matrix to one env per python version, with two extra builds
for lint and docs. Delegate to tox from travis-ci.
Add 3.8 to testing. Simplify by dropping coverage reporting and
"no-deps" test runs.
Ben Darnell [Sun, 3 Nov 2019 15:49:55 +0000 (10:49 -0500)]
Merge pull request #2767 from bdarnell/fix-lint
demos: Fix lint in webspider demo
Ben Darnell [Sun, 3 Nov 2019 14:57:48 +0000 (09:57 -0500)]
demos: Fix lint in webspider demo
Updates #2765
Ben Darnell [Sun, 3 Nov 2019 14:51:18 +0000 (09:51 -0500)]
Merge pull request #2765 from jvansan:master
Dead link handling in webspider example
Ben Darnell [Sun, 3 Nov 2019 14:47:37 +0000 (09:47 -0500)]
Merge pull request #2766 from tornadoweb/pin-black
ci: Pin version of black
Ben Darnell [Sat, 2 Nov 2019 21:37:36 +0000 (17:37 -0400)]
ci: Pin version of black
A new release of black changed the way some of our files are formatted,
so use a fixed version in CI.
Jeff van Santen [Sat, 2 Nov 2019 00:11:52 +0000 (17:11 -0700)]
Dead link handling
Added an extra set for handling dead links, and reporting.
One consequence of this is that using this script will "work" offline, but will report that some all the links were not fetched.
Ben Darnell [Mon, 21 Oct 2019 02:34:18 +0000 (22:34 -0400)]
Merge pull request #2727 from andersk/304
Clear fewer headers on 1xx/204/304 responses
Ben Darnell [Mon, 21 Oct 2019 02:16:10 +0000 (22:16 -0400)]
Merge pull request #2745 from remram44/re-unescape
Fix unescaping of regex routes
Ben Darnell [Thu, 17 Oct 2019 01:45:58 +0000 (21:45 -0400)]
Merge pull request #2748 from supakeen/readme-improvements
Use HTTPS link for tornado website.
Ben Darnell [Thu, 17 Oct 2019 01:34:13 +0000 (21:34 -0400)]
Merge pull request #2750 from jbampton/simplify-statements
Simplify chained comparisons.
Ben Darnell [Thu, 17 Oct 2019 01:31:40 +0000 (21:31 -0400)]
Merge pull request #2755 from tornadoweb/dependabot/pip/maint/twisted-19.7.0
build(deps): bump twisted from 19.2.1 to 19.7.0 in /maint
dependabot[bot] [Thu, 17 Oct 2019 01:14:26 +0000 (01:14 +0000)]
build(deps): bump twisted from 19.2.1 to 19.7.0 in /maint
Bumps [twisted](https://github.com/twisted/twisted) from 19.2.1 to 19.7.0.
- [Release notes](https://github.com/twisted/twisted/releases)
- [Changelog](https://github.com/twisted/twisted/blob/trunk/NEWS.rst)
- [Commits](https://github.com/twisted/twisted/compare/twisted-19.2.1...twisted-19.7.0)
Signed-off-by: dependabot[bot] <support@github.com>
Ben Darnell [Thu, 17 Oct 2019 00:54:06 +0000 (20:54 -0400)]
Merge pull request #2741 from khasanovbi/fix_head_transfer_encoding_chunked
Fix extra data sending at HEAD response with Transfer-Encoding: Chunked
John Bampton [Sun, 6 Oct 2019 02:44:52 +0000 (12:44 +1000)]
Simplify chained comparison.
supakeen [Sat, 5 Oct 2019 10:52:09 +0000 (10:52 +0000)]
Use HTTPS link for tornado website.
Remi Rampin [Fri, 4 Oct 2019 01:32:04 +0000 (21:32 -0400)]
Fix unescaping of regex routes
Previously, only the part before the first '(' would be correctly
unescaped.
Remi Rampin [Fri, 4 Oct 2019 15:00:43 +0000 (11:00 -0400)]
Add test for unescaping with groups
Bulat Khasanov [Sun, 8 Sep 2019 15:06:55 +0000 (18:06 +0300)]
Omit Transfer-Encoding header for HEAD response