- 27 7月, 2023 5 次提交
-
-
由 Ben Darnell 提交于
autoreload: Various updates
-
由 Ben Darnell 提交于
-
由 Ben Darnell 提交于
-
由 Ben Darnell 提交于
-
由 Ben Darnell 提交于
This flag terminates the autoreload loop after the first successful run. This makes it possible to cleanly shut down a process that is using "python -m tornado.autoreload" without printing a traceback. Fixes #2398
-
- 26 7月, 2023 2 次提交
-
-
由 Ben Darnell 提交于
build(deps): bump certifi from 2022.12.7 to 2023.7.22
-
由 dependabot[bot] 提交于
Bumps [certifi](https://github.com/certifi/python-certifi) from 2022.12.7 to 2023.7.22. - [Commits](https://github.com/certifi/python-certifi/compare/2022.12.07...2023.07.22) --- updated-dependencies: - dependency-name: certifi dependency-type: indirect ... Signed-off-by: Ndependabot[bot] <support@github.com>
-
- 23 7月, 2023 5 次提交
-
-
由 Ben Darnell 提交于
A previous commit added support for using autoreload within programs that were started as directories; this commit supports them when run with the -m tornado.autoreload wrapper. This change may have side effects for file mode since we now use runpy.run_path instead of executing the file by hand (I don't think the run_path function existed when this code was originally written).
-
由 Ben Darnell 提交于
-
由 Ben Darnell 提交于
This will make it easier to add other options (for #2398)
-
由 Ben Darnell 提交于
Running a directory has some but not all of the behavior of running a module, including setting __spec__, so we must be careful not to break things by assuming that __spec__ means module mode. Fixes #2855
-
由 Ben Darnell 提交于
build(deps): bump pygments from 2.14.0 to 2.15.0
-
- 20 7月, 2023 1 次提交
-
-
由 dependabot[bot] 提交于
Bumps [pygments](https://github.com/pygments/pygments) from 2.14.0 to 2.15.0. - [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.14.0...2.15.0) --- updated-dependencies: - dependency-name: pygments dependency-type: indirect ... Signed-off-by: Ndependabot[bot] <support@github.com>
-
- 08 7月, 2023 10 次提交
-
-
由 Ben Darnell 提交于
asyncio: Remove atexit hook
-
由 Ben Darnell 提交于
This hook was added because of an only-in-CI issue, but we have since improved our cleanup of the selector thread. As long as this passes CI, I think we can remove the atexit hook. Fixes #3291
-
由 Ben Darnell 提交于
auth: Various updates
-
由 Ben Darnell 提交于
-
由 Ben Darnell 提交于
-
由 Ben Darnell 提交于
Matches a change made to the Google auth mixin in a previous commit. Fixes #756
-
由 Ben Darnell 提交于
The read_stream scope was replaced with user_posts; this change was made to demos/facebook/facebook.py in #1674 but the corresponding comment was not updated. The offline_access scope has also been removed but seems irrelvant to this comment. Fixes #1566
-
由 Ben Darnell 提交于
Add some more detail to app registration docs. This was done mainly to verify that we don't need to introduce new parameters as requested in #2140 Closes #2140
-
由 Ben Darnell 提交于
It's unclear to what extent this class still works given Twitter's recent API changes. Deprecate it since I don't intend to track future changes here.
-
由 Ben Darnell 提交于
OAuth2Mixin.authorize_redirect has never used this argument and similar methods in this module don't have it. Closes #1122
-
- 22 6月, 2023 6 次提交
-
-
由 Ben Darnell 提交于
test: Add test for open redirect fixed in 6.3.2
-
由 Ben Darnell 提交于
-
由 Ben Darnell 提交于
Updates for Python 3.12
-
由 Ben Darnell 提交于
Python 3.12 deprecates the utcnow and utcfromtimestamp methods and discourages the use of naive datetimes to represent UTC. This was previously the main way that Tornado used datetimes (since it was the only option available in Python 2 before the introduction of datetime.timezone.utc in Python 3.2). - httpclient_test: Test-only change to test that both kinds of datetimes are supported in If-Modified-Since (this just calls httputil.format_timestamp) - httputil: No functional changes, but format_timestamp's support for both naive and aware datetimes is now tested. - locale: format_timestamp now supports aware datetimes (in addition to the existing support for naive datetimes). - web: Cookie expirations internally use aware datetimes. StaticFileHandler.get_modified_time now supports both and the standard implementation returns aware. It feels fragile that "naive" and "aware" datetimes are not distinct types but subject to data-dependent behavior. This change uses "aware" datetimes throughout Tornado, but some operations (comparisons and subtraction) fail with mixed datetime types and if I missed any in this change may cause errors if naive datetimes were used (where previously naive datetimes would have been required). But that's apparently the API we have to work with.
-
由 Ben Darnell 提交于
-
由 Ben Darnell 提交于
Now that python/cpython#105808 is fixed in beta 3.
-
- 20 6月, 2023 7 次提交
-
-
由 Ben Darnell 提交于
asyncio_test: Use inequality when looking for thread leaks
-
由 Ben Darnell 提交于
-
由 Ben Darnell 提交于
Sometimes we have a net reduction in the thread count because there was an extra thread running at the time captured the starting count, so use inequality instead of exact matches.
-
由 Ben Darnell 提交于
asyncio: Modernize type annotations
-
由 Ben Darnell 提交于
-
由 Ben Darnell 提交于
asyncio: Use a canary task to detect end of event loop
-
由 Ben Darnell 提交于
Async generators have a special shutdown protocol which allows us to detect the end of the event loop and stop our thread. This lets us clean up the thread reliably when the event loop is started/stopped via the tornado IOLoop interfaces (which explicitly know about the selector thread), or when the latest asyncio interfaces are used (asyncio.run or manually calling shutdown_asyncgens). The thread is still leaked when older versions of the asyncio interfaces are used (loop.close *without* shutdown_asyncgens), but I've been unable to find a solution that does not print leak warnings even in the event of a clean shutdown. Use of shutdown_asyncgens is now effectively required for apps combining asyncio and tornado. This is unfortunate since leaking a thread is relatively expensive compared to the usual consequences of failing to call shutdown_asyncgens, but it seems to be the best we can do. Fixes #3173
-
- 15 6月, 2023 2 次提交
-
-
由 Ben Darnell 提交于
ci: Disable Python 3.12 in CI
-
由 Ben Darnell 提交于
Current betas have a bug in GzipFile we can't easily work around. https://github.com/python/cpython/issues/105808
-
- 27 5月, 2023 1 次提交
-
-
由 Ben Darnell 提交于
build(deps): bump requests from 2.28.2 to 2.31.0
-
- 23 5月, 2023 1 次提交
-
-
由 dependabot[bot] 提交于
Bumps [requests](https://github.com/psf/requests) from 2.28.2 to 2.31.0. - [Release notes](https://github.com/psf/requests/releases) - [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md) - [Commits](https://github.com/psf/requests/compare/v2.28.2...v2.31.0) --- updated-dependencies: - dependency-name: requests dependency-type: indirect ... Signed-off-by: Ndependabot[bot] <support@github.com>
-