Ben Darnell
2b9f7925d3
Add trollius (py2 backport of asyncio) to tox config.
...
This passes the twisted integration tests but currently has some issues
with pycurl.
2014-01-07 01:14:37 -05:00
Ben Darnell
f9c8664e0f
Rename "normal" to "end_color" in log format strings.
...
When not colorizing, use empty strings instead of two copies of "normal".
Update docs.
2014-01-06 22:42:43 -05:00
Andrea Ratto
d2a56867ed
Improved extensibility of LogFormatter
...
* refactored code separating coloring logic
* allow full line customization of the format
* possibly faster operation
2014-01-06 22:42:43 -05:00
Ben Darnell
1a2460caf3
Move _setup_logging to BaseIOLoop and use it in asyncio and twisted implementations.
2014-01-06 18:51:07 -05:00
Ben Darnell
daab25b994
Remove inaccurate IOLoop logging test cases.
2014-01-06 18:49:33 -05:00
Ben Darnell
902e6a2c30
Merge commit 'c2a25a'
...
* commit 'c2a25a':
Correct example variable, use consistant quoting
Closes #972
2014-01-06 18:23:11 -05:00
bdarnell
7bb0535946
Merge pull request #971 from gmr/logging-patch
...
Don't call logging.basicConfig if logging is already configured (#775 ). Replaces #887
2014-01-06 15:08:18 -08:00
Gavin M. Roy
c2a25ac397
Correct example variable, use consistant quoting
2014-01-06 16:55:35 -05:00
Gavin M. Roy
6e287d8ce0
Don't call logging.basicConfig if logging is already configured ( #775 ).
...
Will not call logging.basicConfig if there is a root logger,
tornado logger or tornado.application logger.
Updated patch to reflect comments about tests and method privacy.
2014-01-06 16:47:54 -05:00
Ben Darnell
48a5969c30
Add a warning to the StaticFileHandler docs against overriding .get().
2014-01-04 11:33:50 -05:00
Ben Darnell
c9af9a7224
Remove redundant uses of @asynchronous with @gen.coroutine.
2014-01-02 20:51:59 -05:00
Ben Darnell
be70cb085b
Doc updates.
...
* Version-added tags
* Add some missing methods
* Ignore asyncio module for coverage reports
* Work around a sphinx 1.2 regression
2013-12-31 17:50:12 -05:00
Ben Darnell
de6fa77dda
Update future imports for recently added files.
...
(This is most meaningful for tornado.platform.asyncio, which needs
absolute imports for the python 2 backport of asyncio).
2013-12-31 15:08:50 -05:00
Ben Darnell
d7d24217b8
Add usage comement to run_fixers.py.
2013-12-31 15:08:50 -05:00
bdarnell
9577776e3e
Merge pull request #969 from ronnix/patch-1
...
Fix asyncio code example
2013-12-30 14:18:58 -08:00
Ronan Amicel
f414b49105
Fix asyncio code example
2013-12-30 22:35:33 +01:00
Ben Darnell
541331a007
Set version number to 3.2b1.
2013-12-30 14:18:28 -05:00
Ben Darnell
bf2cf0e202
Add python 3.4 tag to setup.py
2013-12-30 14:17:57 -05:00
Ben Darnell
326d283c6f
Reorganize and expand next-release notes.
2013-12-30 13:25:27 -05:00
Ben Darnell
ada9c0a4d9
Fix doc build on travis after removal of 'cd maint'
2013-12-30 12:19:50 -05:00
Ben Darnell
bdee92ac48
Remove 'cd maint' from travis script.
...
This was needed for 2to3, which we no longer use. The changed
directory meant that coveralls wasn't seeing our .coveragerc.
2013-12-30 12:10:55 -05:00
Ben Darnell
275da3c2d2
Correctly skip coverage collection on 2.6.
2013-12-30 11:58:31 -05:00
Ben Darnell
ea6cb29be6
Disable coverage collection on python 2.6.
2013-12-30 11:52:49 -05:00
Ben Darnell
9360bbfcf6
Add coveralls to travis config.
2013-12-30 11:37:58 -05:00
Ben Darnell
0f6caf59e1
Disable --pre flag in tox installs to fix environment recreation.
...
Remove an old hack for monotime package.
2013-12-30 11:32:38 -05:00
Ben Darnell
b2b8334897
autopep8 whitespace fixes.
2013-12-29 23:56:37 -05:00
Ben Darnell
647dce9818
Update run_autopep8.sh flags.
2013-12-29 23:43:23 -05:00
Ben Darnell
93714293c0
Upgrade maint/requirements.txt versions.
2013-12-29 23:33:47 -05:00
Ben Darnell
a48831ca8c
Disallow ipv6 in curl-based tests.
...
The test servers only listen on ipv4, and it appears that libcurl 7.19.34
has regressed in its ability to handle the case when localhost resolves
to both v4 and v6 variants but only one works.
IPv6 was already disabled by default in simple_httpclient tests.
2013-12-29 20:41:17 -05:00
Ben Darnell
4dfb519580
Use a more reliable method to generate resolver errors.
...
On some platforms even getaddrinfo is fooled by the fake NXDOMAIN results.
2013-12-29 19:45:34 -05:00
Ben Darnell
f5ac210298
Fixes for soon-to-be-released py3-compatible version of pycurl.
2013-12-29 14:57:29 -05:00
Ben Darnell
f55e070314
Mark another timing-sensitive test as skipOnTravis.
2013-12-28 20:11:58 -05:00
Ben Darnell
9d57a0cdfc
Disable the "bad_host" tests on CaresResolver
...
This is an unfortunate hack, but c-ares doesn't handle fake NXDOMAIN
responses in the same way as other resolvers.
2013-12-28 20:11:20 -05:00
bdarnell
de39a398fb
Merge pull request #965 from ajdavis/twisted-resolver-err
...
Error handling in TwistedResolver
2013-12-28 16:44:20 -08:00
Ben Darnell
f5d3b5dbfb
Add some markup to the old template intro docs.
...
Closes #967 .
2013-12-28 19:38:16 -05:00
A. Jesse Jiryu Davis
465e15f354
Error handling in TwistedResolver
2013-12-24 15:02:07 -06:00
Ben Darnell
893c30d2dc
Improve log message for invalid unicode.
...
Truncate long values, and include the argument name if available.
2013-12-23 17:33:46 -05:00
bdarnell
511df84353
Merge pull request #963 from minrk/invalid-unicode
...
bad unicode in URLs shouldn't cause 500
2013-12-23 14:25:46 -08:00
MinRK
dbc2c53d65
expect log message in test_decode_argument_invalid_unicode
2013-12-23 14:23:36 -08:00
Ben Darnell
34796817d9
Remove new HTTPRequest.if_modified_since property.
...
This property was unusual in that its getter returned a value its
setter would not accept, and was redundant with direct access to the
headers.
Use the property setters in the constructor instead of duplicating logic.
2013-12-23 17:08:01 -05:00
MinRK
12d1ed56df
rase 400, not 500 on invalid unicode in decode_argument
2013-12-23 13:59:43 -08:00
bdarnell
d0e27f1a41
Merge pull request #945 from chrismcguire/request_body_property
...
Add properties corresponding to HTTPRequest constructor arguments
2013-12-23 13:58:10 -08:00
Ben Darnell
5863342896
Minor cleanups for import deadlock test:
...
* Avoid _test.py suffix for file that doesn't contain test cases.
* Resolve localhost instead of tornadoweb.org to avoid network dependency.
* Tighten timeout and add an alarm so failed tests don't leave orphaned
child processes.
* Avoid busy loop while waiting for child to exit.
2013-12-23 16:15:39 -05:00
bdarnell
d3f22273ae
Merge pull request #964 from ajdavis/resolver-deadlock
...
Prevent a deadlock if ThreadedResolver resolves a unicode hostname at module-import time.
2013-12-23 13:01:48 -08:00
A. Jesse Jiryu Davis
6049e2db60
Prevent a deadlock if ThreadedResolver resolves a unicode hostname at module-import time.
2013-12-22 21:00:21 -06:00
MinRK
1c0f4257d1
test that invalid unicode doesn't raise 500
2013-12-22 16:34:46 -08:00
Anton Shestakov
f79bc418ad
Un-force relative in format_date
2013-12-22 13:07:10 +08:00
Chris McGuire
7963f1d6ca
Set altered HTTPRequest attributes as parameters.
2013-12-17 13:13:56 -05:00
bdarnell
03d41df747
Merge pull request #949 from Lardjo/patch-1
...
Added closing parenthesis
2013-12-02 04:55:49 -08:00
Konstantin
c04c525270
Update gen.py
...
Docs. Missing closing parenthesis on example.
2013-12-02 11:04:01 +03:00