]>
git.ipfire.org Git - thirdparty/tornado.git/log
Michael V. DePalatis [Mon, 5 Sep 2016 18:59:42 +0000 (20:59 +0200)]
Only check if sys.stderr isatty once
Michael V. DePalatis [Mon, 5 Sep 2016 18:45:08 +0000 (20:45 +0200)]
Properly condition color support with colorama
Michael V. DePalatis [Wed, 31 Aug 2016 11:59:18 +0000 (13:59 +0200)]
Only use colorama when curses unavailable
This also uses dimmer colors for Windows. This can be tested with
the following script:
```python
import logging
from tornado.log import enable_pretty_logging
logger = logging.getLogger()
enable_pretty_logging()
logger.setLevel(logging.DEBUG)
logger.info("INFO")
logger.warning("WARNING")
logger.debug("DEBUG")
logger.error("ERROR")
print("normal")
```
Michael V. DePalatis [Thu, 11 Aug 2016 17:19:54 +0000 (19:19 +0200)]
Use colorama for color logs when available
A. Jesse Jiryu Davis [Tue, 9 Aug 2016 02:19:50 +0000 (22:19 -0400)]
Merge pull request #1792 from samuelchen/demo_websocket_update
update demo/websocket for updating JQuery to 3.1.0
Samuel Chen [Mon, 8 Aug 2016 08:01:50 +0000 (16:01 +0800)]
update demo/websocket for updating JQuery to 3.1.0
A. Jesse Jiryu Davis [Tue, 2 Aug 2016 12:46:51 +0000 (08:46 -0400)]
Merge pull request #1786 from mr-ping/master
Change the address of Morsel description
Ping Yang [Tue, 2 Aug 2016 11:37:37 +0000 (19:37 +0800)]
Change the address of Morsel description
Ben Darnell [Wed, 27 Jul 2016 18:47:56 +0000 (14:47 -0400)]
Merge pull request #1783 from matee911/master
docs: Fixed typo in release notes
matee [Wed, 27 Jul 2016 14:10:12 +0000 (16:10 +0200)]
Fixed typo in release notes
Ben Darnell [Tue, 26 Jul 2016 14:05:10 +0000 (10:05 -0400)]
Merge pull request #1781 from bdarnell/options-path
options_test: Absolutize `__file__`
Ben Darnell [Tue, 26 Jul 2016 04:03:11 +0000 (00:03 -0400)]
options_test: Absolutize __file__
Python 3.4 guarantees an absolute path, but in older versions relative
paths are used in some cases.
Fixes #1780
Ben Darnell [Tue, 26 Jul 2016 03:45:45 +0000 (23:45 -0400)]
travis.yml: Reproduce #1780 in CI
Ben Darnell [Mon, 25 Jul 2016 01:35:46 +0000 (21:35 -0400)]
Merge pull request #1778 from protoss-player/master
Fix for uppercase "Transfer-Encoding" values
Ben Darnell [Mon, 25 Jul 2016 00:58:27 +0000 (20:58 -0400)]
httpclient: clarify docs of HTTPResponse.body
Closes #1775
Ben Darnell [Mon, 25 Jul 2016 00:52:23 +0000 (20:52 -0400)]
Merge pull request #1776 from SuminAndrew/exec_in-rewrite
simplify tornado.util.exec_in
Ben Darnell [Mon, 25 Jul 2016 00:45:13 +0000 (20:45 -0400)]
Merge pull request #1772 from stiletto/master
curl_httpclient: Set curl PROTOCOLS and REDIR_PROTOCOLS to HTTP|HTTPS
Ben Darnell [Sat, 23 Jul 2016 17:26:17 +0000 (13:26 -0400)]
Bump master version number to 4.5.dev1
Ben Darnell [Sat, 23 Jul 2016 16:27:16 +0000 (12:27 -0400)]
Set version number to 4.4.1
Ben Darnell [Sat, 23 Jul 2016 16:13:51 +0000 (12:13 -0400)]
Merge pull request #1777 from bdarnell/non-reversible-url
web: URLs that cannot be unescaped should be allowed
Vadim Semenov [Fri, 22 Jul 2016 19:28:30 +0000 (22:28 +0300)]
Fix handling of chunked-encoded requests with uppercase "Transfer-Encoding" value
`HTTP1Connection._can_keep_alive` applied lower() to the header's value, but
`_read_body` didn't.
Ben Darnell [Fri, 22 Jul 2016 18:28:52 +0000 (14:28 -0400)]
web: URLs that cannot be unescaped should be allowed
Fixes a regression in version 4.4
Fixes #1770
Andrey Sumin [Thu, 21 Jul 2016 13:11:06 +0000 (16:11 +0300)]
simplify tornado.util.exec_in
stiletto [Tue, 19 Jul 2016 20:46:02 +0000 (00:46 +0400)]
curl_httpclient: Set curl PROTOCOLS and REDIR_PROTOCOLS to HTTP|HTTPS
Ben Darnell [Fri, 15 Jul 2016 14:53:37 +0000 (10:53 -0400)]
Set version number to 4.4
Ben Darnell [Wed, 13 Jul 2016 02:52:05 +0000 (22:52 -0400)]
Merge pull request #1544 from gitter-badger/gitter-badge
Add a Gitter chat badge to README.rst
Ben Darnell [Sun, 10 Jul 2016 15:04:21 +0000 (11:04 -0400)]
Add ExpectLog to a noisy test case
Ben Darnell [Sun, 10 Jul 2016 13:54:22 +0000 (09:54 -0400)]
demos/benchmark: use current() instead of instance()
Improves compatibility with some IOLoop implementations.
Ben Darnell [Fri, 8 Jul 2016 18:16:41 +0000 (14:16 -0400)]
Set version number to 4.4b1
Ben Darnell [Fri, 8 Jul 2016 18:07:26 +0000 (14:07 -0400)]
Docs and release notes for 4.4
Ben Darnell [Fri, 1 Jul 2016 16:06:39 +0000 (18:06 +0200)]
Merge pull request #1743 from nickcoutsos/204-content-length
Allow 204 responses without Content-Length/Transfer-Encoding
Nick Coutsos [Thu, 23 Jun 2016 02:45:53 +0000 (22:45 -0400)]
Skip testing malformed 204 responses for curl http client
Nick Coutsos [Tue, 21 Jun 2016 23:34:55 +0000 (19:34 -0400)]
Reorganize 204-related test cases
Ben Darnell [Thu, 16 Jun 2016 01:53:34 +0000 (21:53 -0400)]
httputil: Remove extraneous whitespace in str(HTTPHeaders)
zjjott [Wed, 4 May 2016 09:52:33 +0000 (17:52 +0800)]
httputil: add __str__ method to HTTPHeader
Ben Darnell [Sun, 12 Jun 2016 22:40:11 +0000 (15:40 -0700)]
Merge pull request #1750 from bdarnell/nightly
test: Silence PendingDeprecationWarning on nightly
Ben Darnell [Sun, 12 Jun 2016 20:28:35 +0000 (16:28 -0400)]
test: Silence PendingDeprecationWarning on nightly python
Ben Darnell [Sun, 12 Jun 2016 19:26:27 +0000 (12:26 -0700)]
Merge pull request #1744 from zhulongcheng/line-too-long
line too long
Ben Darnell [Sun, 12 Jun 2016 18:12:45 +0000 (14:12 -0400)]
netutil_test: use 127.0.0.1 instead of localhost
The first binding of the port was to 127.0.0.1, so the second should be
too. This may solve #1734.
Ben Darnell [Sun, 12 Jun 2016 17:41:20 +0000 (13:41 -0400)]
Allow any yieldable in with_timeout
Ben Darnell [Sun, 12 Jun 2016 16:22:44 +0000 (12:22 -0400)]
Standardize exceptions raised by Resolvers
Fixes #1721
zhulongcheng [Wed, 8 Jun 2016 14:41:27 +0000 (22:41 +0800)]
line too long
Nick Coutsos [Wed, 8 Jun 2016 01:15:17 +0000 (21:15 -0400)]
Allow 204 responses without Content-Length/Transfer-Encoding
Ben Darnell [Sat, 4 Jun 2016 22:13:31 +0000 (18:13 -0400)]
Merge pull request #1728 from mivade/aiomainloop-hint
Add hint about installing AsyncIOMainLoop early
Ben Darnell [Sat, 4 Jun 2016 22:12:26 +0000 (18:12 -0400)]
Merge pull request #1731 from adamchainz/readthedocs.io
Convert readthedocs link for their .org -> .io migration for hosted projects
Adam Chainz [Sun, 29 May 2016 14:04:33 +0000 (15:04 +0100)]
Convert readthedocs link for their .org -> .io migration for hosted projects
As per their email ‘Changes to project subdomains’:
> Starting today, Read the Docs will start hosting projects from subdomains on the domain readthedocs.io, instead of on readthedocs.org. This change addresses some security concerns around site cookies while hosting user generated data on the same domain as our dashboard.
Test Plan: Manually visited all the links I’ve modified.
Michael V. DePalatis [Sat, 28 May 2016 17:37:48 +0000 (19:37 +0200)]
Make note on alternative IOLoops more general
Ben Darnell [Sat, 28 May 2016 17:29:56 +0000 (13:29 -0400)]
Merge pull request #1727 from xiyanxiyan10/master
better format for process.py
Ben Darnell [Sat, 28 May 2016 17:01:37 +0000 (13:01 -0400)]
Merge pull request #1729 from dvolodin7/patch-1
_Timeout.__lt__ speedup
Ben Darnell [Sat, 28 May 2016 16:43:01 +0000 (12:43 -0400)]
Merge pull request #1725 from LocutusOfBorg/patch-1
Fix testsuite failure when sockets is not defined
Ben Darnell [Sat, 28 May 2016 16:08:27 +0000 (12:08 -0400)]
Merge pull request #1720 from daftshady/master
Fixed #1718
Dmitry Volodin [Wed, 25 May 2016 22:17:38 +0000 (02:17 +0400)]
_Timeout.__lt__ speedup
One of our services uses a lots of callbacks (~15k per IOLoop) and performs massive network IO. During profiling we'd found that significant amount of time consumed in the _Timeout.__lt__ method. Current implementation constantly builds two tuples per comparison. Proposed one pre-builds tuple
during _Timeout creation. Its about ~40% faster.
In [1]: from tornado.ioloop import _Timeout, IOLoop
In [2]: io = IOLoop.current()
In [3]: t0 = _Timeout(io.time(), None, io)
In [4]: t1 = _Timeout(io.time(), None, io)
In [5]: %timeit t0 < t1
1000000 loops, best of 3: 587 ns per loop
In [6]: %timeit t0 < t1
1000000 loops, best of 3: 336 ns per loop
Michael V. DePalatis [Wed, 25 May 2016 17:56:34 +0000 (19:56 +0200)]
Add hint about installing AsyncIOMainLoop early
xiyanxiyan10 [Wed, 25 May 2016 09:27:06 +0000 (17:27 +0800)]
better format for process.py
Gianfranco Costamagna [Tue, 24 May 2016 10:29:51 +0000 (12:29 +0200)]
Fix testsuite failure when sockets is not defined
this fixes the UnboundLocalError issue
"UnboundLocalError: local variable 'sockets' referenced before assignment"
Thanks Ondřej Nový for the help
daftshady [Sun, 22 May 2016 05:05:08 +0000 (14:05 +0900)]
Used read_until_close instead of relying on timing
Ben Darnell [Sun, 22 May 2016 04:35:44 +0000 (00:35 -0400)]
Skip a flaky test on AsyncIOLoop
Ben Darnell [Sun, 22 May 2016 04:09:58 +0000 (00:09 -0400)]
Skip another subprocess test that is flaky on twisted
Ben Darnell [Sun, 22 May 2016 01:55:21 +0000 (21:55 -0400)]
Merge pull request #1722 from bdarnell/windows-error-test
Fix error raised in set_close_exec on windows
Ben Darnell [Sun, 22 May 2016 01:32:13 +0000 (21:32 -0400)]
Document Subprocess as posix-only
Fixes #1585
Ben Darnell [Sun, 22 May 2016 00:23:51 +0000 (20:23 -0400)]
Fix error raised in set_close_exec on windows
This slightly improves error messaging when tornado.process.Subprocess
is used in windows.
Fixes #1703
Ben Darnell [Sun, 22 May 2016 00:15:20 +0000 (20:15 -0400)]
Increase timeout on a flaky test
Ben Darnell [Sat, 21 May 2016 23:44:54 +0000 (19:44 -0400)]
Merge pull request #1712 from yegorich/python2-deps
Don't require backports.ssl_match_hostname on Python 2.7.9 and newer
Ben Darnell [Sat, 21 May 2016 22:51:33 +0000 (18:51 -0400)]
Disable intrusive codecov features
daftshady [Sun, 15 May 2016 14:02:43 +0000 (23:02 +0900)]
Add invalid content-length testcase
daftshady [Sun, 15 May 2016 14:01:17 +0000 (23:01 +0900)]
Handle invalid content-length
Yegor Yefremov [Wed, 4 May 2016 07:26:22 +0000 (09:26 +0200)]
Don't require backports.ssl_match_hostname on Python 2.7.9 and newer
As Python 3.2 support was dropped one can check 2.7.x dependency only.
Tornado running on Python 2.7.9+ doesn't need this backported package,
but some Python packages like circus check package dependencies at
runtime and insist on having backports.ssl_match_hostname installed,
though they don't even use this particular feature.
So checking for exact version makes life of package maintainer easier
especially on embedded Linux distributions like Buildroot.
Ben Darnell [Sat, 30 Apr 2016 15:50:24 +0000 (17:50 +0200)]
Merge pull request #1704 from thinkerou/master
Add shebang for webspider.py
thinkerou [Sat, 30 Apr 2016 00:28:10 +0000 (08:28 +0800)]
Add shebang for webspider.py
Ben Darnell [Sun, 24 Apr 2016 18:39:10 +0000 (14:39 -0400)]
Merge pull request #1689 from harboecp/master
Avoid uncaught exception when _xsrf argument could not be decoded
Ben Darnell [Sun, 24 Apr 2016 16:43:14 +0000 (12:43 -0400)]
Add type annotations to util.py
Mypy now reports "15% imprecise", down from 25%.
Ben Darnell [Sun, 24 Apr 2016 16:17:21 +0000 (12:17 -0400)]
Add .mypy_cache to gitignore
Ben Darnell [Sun, 24 Apr 2016 14:04:15 +0000 (10:04 -0400)]
Remove some no-longer-necessary mypy workarounds
Made obsolete by python/mypy#1010
Ben Darnell [Sun, 24 Apr 2016 00:11:54 +0000 (20:11 -0400)]
Merge pull request #1699 from bdarnell/header-types
Begin to fix type confusion in HTTPHeaders.
Ben Darnell [Sat, 23 Apr 2016 23:34:23 +0000 (19:34 -0400)]
Begin to fix type confusion in HTTPHeaders.
Values in HTTPHeaders were typed inconsistently: the class itself
assumed that values were of type str, while many callers assumed they
were bytes. Since headers are practically restricted to ascii, this
would work on python 2 but fail when certain combinations were
encountered on python 3 (notably the combination of GzipContentEncoding
with multiple preexisting Vary headers).
This commit adds a test and fixes the bug, and also adds enough type
annotations that mypy was able to report errors in the old incorrect
code.
Fixes #1670
Ben Darnell [Wed, 20 Apr 2016 02:37:15 +0000 (22:37 -0400)]
Merge pull request #1694 from zakkie/fix/doc-string
options.parse_config_file also enable tornado.log.LogFormatter
Akihiro Yamazaki [Tue, 19 Apr 2016 05:41:58 +0000 (14:41 +0900)]
fix Formatter description in docstring
Ben Darnell [Sun, 17 Apr 2016 17:01:41 +0000 (13:01 -0400)]
More type:ignore comments for `mypy --py2`
harboecp [Tue, 12 Apr 2016 13:14:01 +0000 (15:14 +0200)]
Avoid uncaught exception when _xsrf argument could not be decoded.
This is primarily to avoid "TypeError: a bytes-like object is required, not 'NoneType" in "check_xsrf_cookie"
Ben Darnell [Mon, 11 Apr 2016 00:59:58 +0000 (20:59 -0400)]
Add type: ignore comments to make mypy happy
Ben Darnell [Sun, 10 Apr 2016 19:53:45 +0000 (15:53 -0400)]
Fix nearly all flake8 warnings except long lines.
Ben Darnell [Sun, 10 Apr 2016 19:43:51 +0000 (15:43 -0400)]
Remove unused import and obsolete comment
Ben Darnell [Sun, 10 Apr 2016 19:42:50 +0000 (15:42 -0400)]
Run autopep8
Ben Darnell [Sun, 10 Apr 2016 19:41:29 +0000 (15:41 -0400)]
Mass update of dependency versions
Ben Darnell [Sun, 10 Apr 2016 19:27:33 +0000 (15:27 -0400)]
Switch to mypy-friendly conditional imports throughout
Ben Darnell [Sat, 9 Apr 2016 20:50:48 +0000 (16:50 -0400)]
Merge pull request #1648 from zhicheng/master
render() should raise an error when finish() already called
Ben Darnell [Sun, 3 Apr 2016 20:46:03 +0000 (16:46 -0400)]
options: add __file__ to config file parsing
Fixes #1666
Ben Darnell [Fri, 1 Apr 2016 23:28:04 +0000 (19:28 -0400)]
Clarify comment in ioloop
"update" could be read as meaning `dict.update`, so use "modify" instead. (the only actual modification is a removal in `remove_handler`)
Ben Darnell [Thu, 31 Mar 2016 20:57:26 +0000 (16:57 -0400)]
Merge pull request #1678 from JZQT/master
Modify an inappropriate comments for tornado.httpclient.AsyncHTTPClient
JZQT [Thu, 31 Mar 2016 15:30:01 +0000 (23:30 +0800)]
Modify an inappropriate comments for tornado.httpclient.AsyncHTTPClient
Ben Darnell [Thu, 31 Mar 2016 12:27:40 +0000 (08:27 -0400)]
Merge pull request #1677 from CaselIT/patch-1
Added missing % to format a string.
Federico Caselli [Thu, 31 Mar 2016 11:59:31 +0000 (13:59 +0200)]
Added missing % to format a string.
Ben Darnell [Fri, 25 Mar 2016 16:13:36 +0000 (17:13 +0100)]
Merge pull request #1674 from splinterific/patch-1
Updated Facebook permissions
Mark Preston [Fri, 25 Mar 2016 14:08:17 +0000 (14:08 +0000)]
Updated Facebook permissions
A. Jesse Jiryu Davis [Sun, 13 Mar 2016 17:11:05 +0000 (13:11 -0400)]
Merge pull request #1664 from bretsko/master
fixed broken link (anchor)
Oleksandr Bretsko [Sun, 13 Mar 2016 16:59:17 +0000 (11:59 -0500)]
fixed broken link (anchor)
Ben Darnell [Sun, 13 Mar 2016 03:38:52 +0000 (22:38 -0500)]
Merge pull request #1662 from malcm/patch-1
Verifying Facebook Graph API Calls
Martin Malchow [Fri, 11 Mar 2016 13:29:51 +0000 (14:29 +0100)]
fix missing comma
malcm [Fri, 11 Mar 2016 13:11:45 +0000 (14:11 +0100)]
Verifying Facebook Graph API Calls
Verification with appsecret_proof can be used: See https://developers.facebook.com/docs/graph-api/securing-requests
A. Jesse Jiryu Davis [Fri, 4 Mar 2016 02:13:06 +0000 (21:13 -0500)]
Merge branch 'tao12345666333-hotfix-doc-web-current-user'
* tao12345666333-hotfix-doc-web-current-user:
fix tornado/web.py #L1075 current_user docstring example