]>
git.ipfire.org Git - thirdparty/tornado.git/log
st4lk [Tue, 24 Feb 2015 10:48:10 +0000 (13:48 +0300)]
don't show pgettext en language warning
st4lk [Tue, 24 Feb 2015 10:45:25 +0000 (13:45 +0300)]
add pgettext to default template namespace
Ben Darnell [Mon, 23 Feb 2015 15:49:23 +0000 (10:49 -0500)]
Merge pull request #1348 from st4lk/locale_doc_fix
Fix doc typos (pgettext)
st4lk [Mon, 23 Feb 2015 09:16:02 +0000 (12:16 +0300)]
Fix doc typos (pgettext)
Ben Darnell [Sun, 22 Feb 2015 00:46:44 +0000 (19:46 -0500)]
Merge pull request #1317 from st4lk/locale_context
Locale context (pgettext support)
Ben Darnell [Sat, 21 Feb 2015 22:55:29 +0000 (17:55 -0500)]
Expand PeriodicCallback docs and testing.
Fixes #1345.
Ben Darnell [Fri, 20 Feb 2015 04:08:25 +0000 (23:08 -0500)]
Merge pull request #1344 from ajdavis/event-cleanups
Event cleanups.
A. Jesse Jiryu Davis [Fri, 20 Feb 2015 03:43:50 +0000 (22:43 -0500)]
Be explicit: Event.wait raises tornado.gen.TimeoutError.
A. Jesse Jiryu Davis [Fri, 20 Feb 2015 03:04:49 +0000 (22:04 -0500)]
Rename TestEvent to EventTest.
A. Jesse Jiryu Davis [Fri, 20 Feb 2015 03:03:19 +0000 (22:03 -0500)]
Simpler markup in Event.wait docstring.
Ben Darnell [Fri, 20 Feb 2015 00:41:50 +0000 (19:41 -0500)]
Merge pull request #1343 from browning/httpclient-exception-typo
Fix simple typo in httpclient exception message
Brian Browning [Fri, 20 Feb 2015 00:17:46 +0000 (16:17 -0800)]
Fix simple typo in httpclient exception message
Unelss should be unless
Ben Darnell [Wed, 18 Feb 2015 22:18:22 +0000 (17:18 -0500)]
Remove long-forgotten (and overly pessimistic) README.
Ben Darnell [Wed, 18 Feb 2015 22:17:26 +0000 (17:17 -0500)]
Fix web_test for python 3.5a1.
Compare strings case-insensitively since the behavior of the
cookie library has changed.
Ben Darnell [Wed, 18 Feb 2015 22:12:13 +0000 (17:12 -0500)]
Fix SSLIOStream in Python 3.5a1.
The behavior of SSLSocket.send() with an unwriteable socket
has changed: http://bugs.python.org/issue20951
Ben Darnell [Wed, 18 Feb 2015 14:54:44 +0000 (09:54 -0500)]
Merge pull request #1341 from ajdavis/event
Add tornado.locks.Event.
A. Jesse Jiryu Davis [Wed, 18 Feb 2015 13:57:09 +0000 (08:57 -0500)]
Import unittest2 in locks_test if needed.
A. Jesse Jiryu Davis [Wed, 18 Feb 2015 13:56:52 +0000 (08:56 -0500)]
Fix multiple calls to Event.clear.
Ben Darnell [Wed, 18 Feb 2015 03:33:36 +0000 (22:33 -0500)]
Make "certifi" optional on py34.
Ben Darnell [Wed, 18 Feb 2015 03:16:19 +0000 (22:16 -0500)]
Start next-release notes
Ben Darnell [Wed, 18 Feb 2015 01:35:19 +0000 (20:35 -0500)]
Bind options argument in define_logging_options.
This allows it to be used with non-default options instances.
Fixes #1342.
A. Jesse Jiryu Davis [Tue, 17 Feb 2015 18:16:07 +0000 (13:16 -0500)]
Combine lock tests into locks_test.py
A. Jesse Jiryu Davis [Tue, 17 Feb 2015 18:09:09 +0000 (13:09 -0500)]
Event.wait raises TimeoutError instead of returning False.
A. Jesse Jiryu Davis [Tue, 17 Feb 2015 18:05:33 +0000 (13:05 -0500)]
Event.io_loop is unused.
A. Jesse Jiryu Davis [Mon, 16 Feb 2015 01:20:18 +0000 (20:20 -0500)]
Add tornado.locks.Event.
Copied from Toro with small improvements.
A. Jesse Jiryu Davis [Mon, 16 Feb 2015 00:16:11 +0000 (19:16 -0500)]
Unused imports in locks.py.
Ben Darnell [Mon, 16 Feb 2015 00:02:11 +0000 (19:02 -0500)]
Fix docs and relax a test.
Ben Darnell [Sun, 15 Feb 2015 23:35:07 +0000 (18:35 -0500)]
Disable SSL compression on py32-33.
This passes howsmyssl.com for python 2.7.9 and above; the older
versions are fairly hopeless.
Ben Darnell [Sun, 15 Feb 2015 23:29:52 +0000 (18:29 -0500)]
Fix tests on py26
Ben Darnell [Sun, 15 Feb 2015 23:23:19 +0000 (18:23 -0500)]
Reuse a global SSLContext by default in simple_httpclient
Ben Darnell [Sun, 15 Feb 2015 23:06:07 +0000 (18:06 -0500)]
Document that allow_ipv6 is now true in simple_httpclient.
Ben Darnell [Sun, 15 Feb 2015 23:04:52 +0000 (18:04 -0500)]
Add ssl_options argument for simple_httpclient.
Ben Darnell [Sun, 15 Feb 2015 22:40:40 +0000 (17:40 -0500)]
Validate SSL certs by default at the IOStream level.
Use the system certificates instead of certifi when available.
Note that this does not change the behavior of simple_httpclient,
which always uses certifi but will be changing in a future commit.
Ben Darnell [Sun, 15 Feb 2015 17:12:25 +0000 (12:12 -0500)]
Update ssl_options docs to use SSLContext.
Now that Python 2 has a modern SSL package, SSLContext can
be presented as the default instead of the dictionary of
options.
Fixes #1322.
Ben Darnell [Sun, 15 Feb 2015 16:40:46 +0000 (11:40 -0500)]
Document the limitations of read_until_close(streaming_callback=).
As noted in #1334 and #1339.
Ben Darnell [Sun, 15 Feb 2015 15:57:12 +0000 (10:57 -0500)]
Merge pull request #1340 from jonashagstedt/master
_on_close_called is set to True (was always False)
Ben Darnell [Sun, 15 Feb 2015 15:56:15 +0000 (10:56 -0500)]
Merge pull request #1338 from ajdavis/condition-squashed
Add tornado.locks.Condition.
Jonas Hagstedt [Sun, 15 Feb 2015 00:56:31 +0000 (01:56 +0100)]
_on_close_called is set to True (was always False)
A. Jesse Jiryu Davis [Sat, 14 Feb 2015 19:30:48 +0000 (14:30 -0500)]
Add tornado.locks.Condition.
Copied from Toro with small improvements.
Ben Darnell [Thu, 12 Feb 2015 23:15:38 +0000 (18:15 -0500)]
Increase the timeout on a test that's failing on travis-ci.
It is inexplicably failing on py27 DEPS=false while passing in other
configurations.
Ben Darnell [Thu, 12 Feb 2015 23:06:51 +0000 (18:06 -0500)]
Merge pull request #1333 from carlsverre/master
Coroutine exception __context__ leak in python 3
Ben Darnell [Thu, 12 Feb 2015 22:05:48 +0000 (17:05 -0500)]
Merge pull request #1336 from grafuls/master
flake8 cleanup
Carl Sverre [Thu, 12 Feb 2015 04:00:02 +0000 (20:00 -0800)]
Coroutine exception __context__ leak in python 3
In Python 3 every exception has an auto-attached __context__ exception if it was
raised while an existing exception was being handled. This is often a very
useful property and allows users to see the underlying cause of many problems.
However, when dealing with async code via coroutines this feature can suddenly
become a pretty big issue. Namely, if you generator.throw back into a coroutine
to raise an exception in the correct scope, and that coroutine raises an
exception at a later time you can have nested exceptions which shouldn't
logically be nested.
This patch resolves this issue in the coroutine code by moving the gen.throw
outside of the exception handler. By doing this the user-code scope is able to
later raise exceptions without worrying about inheriting prior exception
context.
Gonzalo Rafuls [Thu, 12 Feb 2015 17:18:43 +0000 (18:18 +0100)]
flake8 cleanup
Ben Darnell [Thu, 12 Feb 2015 16:13:14 +0000 (11:13 -0500)]
Merge pull request #1335 from grafuls/master
Added logging for debugging and fixes for flake8
Gonzalo Rafuls [Thu, 12 Feb 2015 15:53:43 +0000 (16:53 +0100)]
merge
Gonzalo Rafuls [Thu, 12 Feb 2015 13:24:52 +0000 (14:24 +0100)]
Added logging for debugging and fixes for flake8
Gonzalo Rafuls [Thu, 12 Feb 2015 13:24:52 +0000 (14:24 +0100)]
Added logging for debugging and fixes for flake8
Ben Darnell [Wed, 11 Feb 2015 03:23:30 +0000 (22:23 -0500)]
Merge pull request #1290 from nosyjoe/branch4.0-mrbeam
Avoid busy waiting in ioloop when system time is skipped forward
Philipp Engel [Tue, 16 Dec 2014 14:43:06 +0000 (15:43 +0100)]
modified method _schedule_next of PeriodicCallback to handle sudden changes of the system time differently:
* calculating next timeout value directly while advancing by a multiple of callback_time
* when the system time changes, jumps into the future make the _schedule_next method do a busy wait.
* on slow machines (RPi), jumps of a few months into the future can block the loop for a few minutes
=> added a check for big differences in current system time and the current value of the next scheduled timeout
On a first boot of an older RPi image, tornado sometime starts before the date&time were updated through NTP, hence blocking the ioloop for several minutes.
Ben Darnell [Mon, 9 Feb 2015 05:22:28 +0000 (00:22 -0500)]
Enable sphinx doctests on travis-ci
Ben Darnell [Mon, 9 Feb 2015 05:19:47 +0000 (00:19 -0500)]
Make many doc code blocks into sphinx doctests.
Ben Darnell [Sun, 8 Feb 2015 21:09:00 +0000 (16:09 -0500)]
Enable the sphinx doctest extension.
Ben Darnell [Sun, 8 Feb 2015 20:02:49 +0000 (15:02 -0500)]
More flake8 cleanup.
The only remaining flake8 errors are for line length.
Ben Darnell [Sun, 8 Feb 2015 19:40:04 +0000 (14:40 -0500)]
Run autopep8
Ben Darnell [Sun, 8 Feb 2015 18:55:02 +0000 (13:55 -0500)]
Update requirement versions; add flake8 and twine
Ben Darnell [Sun, 8 Feb 2015 18:26:56 +0000 (13:26 -0500)]
Allow unicode strings in import_object in python 2.
Fixes #1316.
Ben Darnell [Sat, 7 Feb 2015 18:19:37 +0000 (13:19 -0500)]
Merge pull request #1327 from josephok/master
some modifications in demos/benchmark so it can run both in py2 and py3
Ben Darnell [Sat, 7 Feb 2015 18:18:08 +0000 (13:18 -0500)]
Merge pull request #1325 from ccampbell/master
Skip falsy values for some SimpleCookie flags
Ben Darnell [Sat, 7 Feb 2015 18:15:19 +0000 (13:15 -0500)]
Bump master branch version number
Ben Darnell [Sat, 7 Feb 2015 17:47:11 +0000 (12:47 -0500)]
Set version number to 4.1
Ben Darnell [Sat, 7 Feb 2015 17:46:33 +0000 (12:46 -0500)]
Finalize 4.1 release notes.
Joseph [Fri, 6 Feb 2015 02:29:13 +0000 (10:29 +0800)]
some modifications in demos/benchmark so it can run both in py2 and py3
Craig Campbell [Tue, 3 Feb 2015 21:05:48 +0000 (16:05 -0500)]
Add unit tests for new cookie behavior
Craig Campbell [Tue, 3 Feb 2015 21:05:01 +0000 (16:05 -0500)]
Skip falsy values for SimpleCookie flags
Fixes #1324
Ben Darnell [Sun, 1 Feb 2015 19:27:54 +0000 (14:27 -0500)]
Set version number to 4.1b2
Ben Darnell [Sun, 1 Feb 2015 19:17:25 +0000 (14:17 -0500)]
Update docs for UIModule.
A. Jesse Jiryu Davis [Fri, 30 Jan 2015 20:08:08 +0000 (15:08 -0500)]
Use self.io_loop in with_timeout tests.
Ben Darnell [Sun, 1 Feb 2015 15:52:30 +0000 (10:52 -0500)]
Silence a warning on freebsd.
This was already changed for other platforms but the error behaves
a bit differently on freebsd.
Ben Darnell [Sun, 1 Feb 2015 04:00:20 +0000 (23:00 -0500)]
Merge branch 'master' of github.com:tornadoweb/tornado
Ben Darnell [Sun, 1 Feb 2015 03:52:07 +0000 (22:52 -0500)]
Disable twisted_web tests on python 3.
The twisted.web modules are importable as of Twisted 15.0.0,
but appear to still have internal str/bytes issues.
Ben Darnell [Fri, 30 Jan 2015 17:15:17 +0000 (12:15 -0500)]
Merge pull request #1319 from hfaran/patch-1
Add syntax highlighting to Hello World example
Ben Darnell [Fri, 30 Jan 2015 16:49:34 +0000 (11:49 -0500)]
Fix a DeprecationWarning in twisted_test with Twisted 15.0.
Hamza Faran [Fri, 30 Jan 2015 10:47:16 +0000 (02:47 -0800)]
Add syntax highlighting to Hello World example
st4lk [Tue, 27 Jan 2015 12:40:14 +0000 (15:40 +0300)]
merge pgettext and npgettext into one pgettext
st4lk [Tue, 27 Jan 2015 12:05:01 +0000 (15:05 +0300)]
add pgettext, npgettext docstrings
st4lk [Tue, 27 Jan 2015 11:45:13 +0000 (14:45 +0300)]
add pgettext, npgettext
Ben Darnell [Sun, 25 Jan 2015 15:44:11 +0000 (10:44 -0500)]
Merge branch 'stable'
Ben Darnell [Sun, 25 Jan 2015 15:35:59 +0000 (10:35 -0500)]
Merge pull request #1312 from FreeAquar/patch-1
a wrong describle
FreeAquar [Sun, 25 Jan 2015 09:01:47 +0000 (17:01 +0800)]
a wrong describle
Ben Darnell [Sun, 25 Jan 2015 00:50:04 +0000 (19:50 -0500)]
Replace most testing uses of 'localhost' with '127.0.0.1'.
This may work around a suspected ipv6-related issue on travis.
Ben Darnell [Sun, 25 Jan 2015 00:21:34 +0000 (19:21 -0500)]
Include the ability to yield asyncio and twisted objects in highlights
Ben Darnell [Sun, 25 Jan 2015 00:12:08 +0000 (19:12 -0500)]
Set version number to 4.1b1
Ben Darnell [Sat, 24 Jan 2015 23:38:18 +0000 (18:38 -0500)]
Fix doc coverage for WaitIterator.
Ben Darnell [Sat, 24 Jan 2015 23:35:18 +0000 (18:35 -0500)]
Clean up release notes
Ben Darnell [Sat, 24 Jan 2015 23:18:09 +0000 (18:18 -0500)]
Update release notes and docs.
Ben Darnell [Sat, 24 Jan 2015 22:29:03 +0000 (17:29 -0500)]
Merge remote-tracking branch 'Caligatio/ws_message_callback'
Conflicts:
tornado/websocket.py
Ben Darnell [Sat, 24 Jan 2015 22:14:20 +0000 (17:14 -0500)]
Give curl_httpclient its own logger for its verbose debug output.
This makes it easier to filter it separately.
This commit is an updated recreation of
https://github.com/SuminAndrew/tornado/commit/
88809314e853fb69610cf44095612e78b0882c3e
to account for code movement.
Closes #1093.
Ben Darnell [Sat, 24 Jan 2015 22:06:34 +0000 (17:06 -0500)]
Merge pull request #1286 from vovanec/patch-1
Added support for custom web socket protocols.
Ben Darnell [Mon, 19 Jan 2015 20:38:59 +0000 (15:38 -0500)]
Introduce gen.sleep().
Closes #1146.
Ben Darnell [Mon, 19 Jan 2015 18:50:12 +0000 (13:50 -0500)]
Singledispatch and twisted don't work well together on py26.
Only install singledispatch on py27.
Ben Darnell [Mon, 19 Jan 2015 17:34:19 +0000 (12:34 -0500)]
Document convert_yielded.
Ben Darnell [Mon, 19 Jan 2015 16:43:52 +0000 (11:43 -0500)]
Add bidirectional asyncio future conversion.
Ben Darnell [Mon, 19 Jan 2015 16:20:45 +0000 (11:20 -0500)]
Add a convert_yield adapter for twisted Deferreds.
Ben Darnell [Mon, 19 Jan 2015 15:20:33 +0000 (10:20 -0500)]
Document the AsyncIOLoop.asyncio_loop attribute for public use.
Ben Darnell [Mon, 19 Jan 2015 04:54:41 +0000 (23:54 -0500)]
Use functools.singledispatch for convert_yielded when available.
Register a converter for asyncio.Future and add tests.
Ben Darnell [Mon, 19 Jan 2015 03:54:34 +0000 (22:54 -0500)]
Refactor coroutine yield handling.
Extract a convert_yielded function that can be extended with other types.
Ben Darnell [Mon, 19 Jan 2015 01:40:09 +0000 (20:40 -0500)]
Call the WebSocketHandler.on_close method regardless of which side closed.
Closes #1173.
Ben Darnell [Sun, 18 Jan 2015 22:06:53 +0000 (17:06 -0500)]
Convert WaitIterator to use while-like iteration instead of for-like.
Make current_future and current_index attributes instead of methods.
Restructure the internals to avoid quadratic performance.
Ben Darnell [Sun, 18 Jan 2015 21:33:11 +0000 (16:33 -0500)]
Fix test; cleanup whitespace.