Commit Graph

958 Commits

Author SHA1 Message Date
Ben Darnell 605c521390 Fix weird indentation in auth.py and simple_httpclient_test.py 2012-02-09 01:02:25 -08:00
Ben Darnell c152b78448 While I'm touching every file, run autopep8 too.
Might as well get all the merge headaches over with at once :)

Ran with
$ autopep8 --ignore=E111,W602 i tornado/*.py tornado/platform/*.py tornado/test/*.py
2012-02-09 00:55:27 -08:00
Ben Darnell 58a7ff10a8 Turn on __future__ division too.
All existing uses of division were already using a float for at least
one operand (except the tests that just do 1/0 as a quick way to throw
an exception).

We have now turned on all the __future__ options available in python2.5.
2012-02-09 00:17:58 -08:00
Ben Darnell 837da79ef9 Fix one last implicit relative import 2012-02-08 23:38:34 -08:00
Ben Darnell da6d821e0c Standardize future imports for all files in the package. 2012-02-08 23:22:51 -08:00
Ben Darnell 27f9c3a775 Add a script to rewrite __future__ imports 2012-02-08 23:16:56 -08:00
Ben Darnell ffc9b3d4e3 Remove unused __main__ block that ran doctests from a non-test module. 2012-02-02 09:56:47 -08:00
Ben Darnell de4c5fa60c Merge remote-tracking branch 'igorsobreira/master' 2012-02-02 09:44:18 -08:00
Ben Darnell 65531eda0f Enable strict warnings in test runs.
This includes python 3.2's ResourceWarnings, which exposed the
socket leaks fixed in the previous commit.
2012-02-01 09:20:44 -08:00
Ben Darnell fa643437ba Always close sockets in simple_httpclient instead of leaving them for the GC.
Also fix some other sockets left open in tests.

Closes #451.
2012-02-01 09:19:31 -08:00
Ben Darnell b151a1ee96 Add a version check for the curses unicode hack so it won't break when
python 3.2.3 or 3.3 are released.

Closes #450.
2012-01-31 00:34:12 -08:00
Ben Darnell 50b28c5d7a Remove optional setuptools import.
We don't rely on any setuptools features for python2 builds, and the
optional import makes our builds depend on the environment in subtle
ways (egg-info directories, etc).
2012-01-30 23:46:36 -08:00
Ben Darnell 501a551ea2 Bump post-release version number (now pep 386 compliant!) 2012-01-30 23:39:31 -08:00
Ben Darnell cc8e893257 Revert "Run the website in python2.7 mode"
Can't use python2.7 mode without migrating to the "high-replication
datastore", and even though we don't have any data "migration" is a
pain.

This reverts commit e960e9bc9d.
2012-01-30 11:10:17 -08:00
Ben Darnell 02bc76155d Set version number to 2.2. 2012-01-30 11:01:44 -08:00
Ben Darnell 61ba1fb648 Final release notes for 2.2 2012-01-30 11:01:35 -08:00
Ben Darnell e960e9bc9d Run the website in python2.7 mode 2012-01-29 21:57:08 -08:00
Ben Darnell 1910ea1530 Add a highlights section to the release notes. 2012-01-29 21:53:45 -08:00
Igor Sobreira b12edb12d5 Add test to parse_multipart_form_data() when no "name" parameter is found 2012-01-25 00:19:40 -02:00
Igor Sobreira 97009a380e Add test to parse_multipart_form_data() when line does not end with the correct line break (\r\n) 2012-01-25 00:14:17 -02:00
Igor Sobreira e5a6037872 Add test to parse_multipart_form_data() when invalid Content-Disposition 2012-01-24 23:48:54 -02:00
Igor Sobreira 76b002e8e5 Add test to parse_multipart_form_data() when missing headers 2012-01-24 23:43:47 -02:00
Igor Sobreira 554570d658 Add test to parse_multipart_form_data() on httputil when "boundary" parameter has quotes 2012-01-24 22:45:18 -02:00
Ben Darnell 067e465b92 Document curl_httpclient empty password fix.
Accept None as auth_password in simple_httpclient for consistency with
curl_httpclient.
2012-01-23 10:20:35 -08:00
Ben Darnell 9a8e5e4d86 Merge commit 'df23c' 2012-01-23 10:12:56 -08:00
Ben Darnell 7fd178840b Fix gen.engine docs on decorator order.
Add some more test cases that use gen.engine and web.asynchronous together.
2012-01-23 09:45:29 -08:00
dave mankoff df23c039d5 change encode('ascii') to utf8() 2012-01-23 08:33:51 -05:00
Ben Darnell 463baf4347 Add a timeout to test_sslv2_fail so it passes on cygwin. 2012-01-22 18:15:01 -08:00
Ben Darnell e04957d535 Doc updates 2012-01-22 17:52:43 -08:00
Ben Darnell 9c3afde89e Release note updates 2012-01-22 17:04:51 -08:00
Ben Darnell 98b088638e Make StaticFileHandler.parse_url_path an instance method, and make
it responsible for os.path.sep conversion.

Assorted doc updates for StaticFileHandler.
2012-01-22 15:26:35 -08:00
Ben Darnell 983fdbbe3e Merge commit '59812' into work 2012-01-22 14:56:21 -08:00
Ben Darnell 7f7928f2ee Merge remote-tracking branch 'birknilson/static_url_override' into work 2012-01-22 14:25:16 -08:00
Ben Darnell 3bb80eb83f Always set Etag in StaticFileHandler so it won't break if the default
Etag implementation in RequestHandler changes.
2012-01-22 14:19:19 -08:00
dave mankoff bcb30e56fd fix curl basic auth 2012-01-22 17:15:10 -05:00
Ben Darnell 76dd88f1bc Merge remote-tracking branch 'lerks/master' into work 2012-01-22 14:10:14 -08:00
Ben Darnell 1b38b58da8 Update websocket chat demo to work when not addressed as localhost.
Turn on draft76 support.
2012-01-21 17:39:37 -08:00
Ben Darnell 3beb8ce480 Merge remote-tracking branch 'MrJoes/master' into work
Conflicts:
	tornado/websocket.py
2012-01-21 17:28:07 -08:00
Ben Darnell 442b49f866 Refactor websocket close logic; remove dependency on singleton IOLoop. 2012-01-21 17:20:10 -08:00
Ben Darnell 5a18d50f44 Disable slow websocket performance tests by default.
Add pypy to the mix for when we do run the perf tests.  Depending on
the benchmark pypy is ~twice as fast as cpython 2.7
2012-01-21 17:12:22 -08:00
Ben Darnell bc28966ef5 Remove stray log line 2012-01-21 16:16:36 -08:00
Ben Darnell ea0291b256 Check if the stream is closed before writing final websocket close packet.
Closes #390.
2012-01-21 16:02:28 -08:00
Ben Darnell eee9953dcb Websocket subprotocol updates.
Failure to select a subprotocol is not fatal, so rename method from
validate_subprotocol to select_subprotocol.  Subprotocols are a
comma-separated list in the RFC version, but a single value in
draft76.
2012-01-21 16:02:12 -08:00
Ben Darnell 1cfcc4a7bc Merge remote-tracking branch 'davidgaleano/master' into work
Conflicts:
	tornado/websocket.py
2012-01-21 15:15:12 -08:00
Ben Darnell cc671cb55c Allow handlers to override the selection of "ws" or "wss" in the draft76
handshake, to work with SSL proxies that do not insert an X-Scheme header.

Closes #437.
2012-01-21 14:56:43 -08:00
Ben Darnell 4edf2782b5 Merge remote-tracking branch 'nephics/master' into work 2012-01-21 14:45:51 -08:00
Ben Darnell 1014d5683e Check in a requirements file for the tools I use while working on tornado. 2012-01-21 14:35:21 -08:00
Ben Darnell 35139ff82c Add .coveragerc for test coverage reporting.
Closes #439.
2012-01-21 14:10:00 -08:00
Ben Darnell 8b668633ad Add 307 too and update release notes. 2012-01-18 01:17:30 -08:00
Ben Darnell 24d96f0286 Merge remote-tracking branch 'amorton/master'
Conflicts:
	tornado/test/simple_httpclient_test.py
2012-01-18 01:11:21 -08:00