]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
The next version will be 4.0, not 3.3, so update all references to 3.3.
authorBen Darnell <ben@bendarnell.com>
Sat, 7 Jun 2014 15:22:58 +0000 (11:22 -0400)
committerBen Darnell <ben@bendarnell.com>
Sat, 7 Jun 2014 15:22:58 +0000 (11:22 -0400)
15 files changed:
setup.py
tornado/__init__.py
tornado/auth.py
tornado/concurrent.py
tornado/gen.py
tornado/http1connection.py
tornado/httpclient.py
tornado/httpserver.py
tornado/httputil.py
tornado/ioloop.py
tornado/iostream.py
tornado/testing.py
tornado/web.py
tornado/websocket.py
tornado/wsgi.py

index 0a35d612be120c0055e146527f3d91ce3390b65a..21482c467dda732a365db86e28495b875eeb0653 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -108,7 +108,7 @@ http://api.mongodb.org/python/current/installation.html#osx
 
 kwargs = {}
 
-version = "3.3.dev1"
+version = "4.0.dev1"
 
 with open('README.rst') as f:
     kwargs['long_description'] = f.read()
index 0517408457bb6dfe2bbcc181fb78a14f5586e28a..81900d20e3aa1f97b0a9a26fd6659f4041560607 100644 (file)
@@ -25,5 +25,5 @@ from __future__ import absolute_import, division, print_function, with_statement
 # is zero for an official release, positive for a development branch,
 # or negative for a release candidate or beta (after the base version
 # number has been incremented)
-version = "3.3.dev1"
-version_info = (3, 3, 0, -100)
+version = "4.0.dev1"
+version_info = (4, 0, 0, -100)
index f15413e5db4809e35b162de2a6ee578037e4a8f3..f8dadb6692a46e8cfe89787ab374d554a7df0d4e 100644 (file)
@@ -51,7 +51,7 @@ Example usage for Google OpenID::
                     response_type='code',
                     extra_params={'approval_prompt': 'auto'})
 
-.. versionchanged:: 3.3
+.. versionchanged:: 4.0
    All of the callback interfaces in this module are now guaranteed
    to run their callback with an argument of ``None`` on error.
    Previously some functions would do this while others would simply
index 63b0a8c138aff53468718b4500b55782bacfc443..702aa352b2495b8967cc5ff7bb3810aab2a82b70 100644 (file)
@@ -60,7 +60,7 @@ class Future(object):
     This functionality was previously available in a separate class
     ``TracebackFuture``, which is now a deprecated alias for this class.
 
-    .. versionchanged:: 3.3
+    .. versionchanged:: 4.0
        `tornado.concurrent.Future` is always a thread-unsafe ``Future``
        with support for the ``exc_info`` methods.  Previously it would
        be an alias for the thread-safe `concurrent.futures.Future`
@@ -152,7 +152,7 @@ class Future(object):
     def exc_info(self):
         """Returns a tuple in the same format as `sys.exc_info` or None.
 
-        .. versionadded:: 3.3
+        .. versionadded:: 4.0
         """
         return self._exc_info
 
@@ -161,7 +161,7 @@ class Future(object):
 
         Preserves tracebacks on Python 2.
 
-        .. versionadded:: 3.3
+        .. versionadded:: 4.0
         """
         self._exc_info = exc_info
         self.set_exception(exc_info[1])
index 4d1dc6e115eba0fd4cefbc5810fee9eeff8dd83c..9548b5f522fda8545e5bd2357b803de8f83f8f23 100644 (file)
@@ -355,7 +355,7 @@ def Task(func, *args, **kwargs):
         func(args, callback=(yield gen.Callback(key)))
         result = yield gen.Wait(key)
 
-    .. versionchanged:: 3.3
+    .. versionchanged:: 4.0
        ``gen.Task`` is now a function that returns a `.Future`, instead of
        a subclass of `YieldPoint`.  It still behaves the same way when
        yielded.
@@ -464,7 +464,7 @@ def multi_future(children):
     This function is faster than the `Multi` `YieldPoint` because it does not
     require the creation of a stack context.
 
-    .. versionadded:: 3.3
+    .. versionadded:: 4.0
     """
     if isinstance(children, dict):
         keys = list(children.keys())
@@ -520,7 +520,7 @@ def with_timeout(timeout, future, io_loop=None):
 
     Currently only supports Futures, not other `YieldPoint` classes.
 
-    .. versionadded:: 3.3
+    .. versionadded:: 4.0
     """
     # TODO: allow yield points in addition to futures?
     # Tricky to do with stack_context semantics.
@@ -564,7 +564,7 @@ coroutines that are likely to yield Futures that are ready instantly.
 
 Usage: ``yield gen.moment``
 
-.. versionadded:: 3.3
+.. versionadded:: 4.0
 """
 moment.set_result(None)
 
index edaa5d9e108a3937993b3cd830500caa1f9a1b58..dba6a0ab68da0deb569e84e2874fefee44934a8b 100644 (file)
@@ -16,7 +16,7 @@
 
 """Client and server implementations of HTTP/1.x.
 
-.. versionadded:: 3.3
+.. versionadded:: 4.0
 """
 
 from __future__ import absolute_import, division, print_function, with_statement
@@ -258,7 +258,7 @@ class HTTP1Connection(httputil.HTTPConnection):
     def set_close_callback(self, callback):
         """Sets a callback that will be run when the connection is closed.
 
-        .. deprecated:: 3.3
+        .. deprecated:: 4.0
             Use `.HTTPMessageDelegate.on_connection_close` instead.
         """
         self._close_callback = stack_context.wrap(callback)
index 94a4593aaae8dc98c71fb3f5ada6d9e73b32f975..a7a187c9b678056664bf50b0fdc2afb81dee02ec 100644 (file)
@@ -284,7 +284,7 @@ class HTTPRequest(object):
            ``curl_httpclient``.  When using ``body_producer`` it is recommended
            to pass a ``Content-Length`` in the headers as otherwise chunked
            encoding will be used, and many servers do not support chunked
-           encoding on requests.  New in Tornado 3.3
+           encoding on requests.  New in Tornado 4.0
         :arg string auth_username: Username for HTTP authentication
         :arg string auth_password: Password for HTTP authentication
         :arg string auth_mode: Authentication mode; default is "basic".
@@ -358,7 +358,7 @@ class HTTPRequest(object):
         .. versionadded:: 3.1
            The ``auth_mode`` argument.
 
-        .. versionadded:: 3.3
+        .. versionadded:: 4.0
            The ``body_producer`` and ``expect_100_continue`` arguments.
         """
         # Note that some of these attributes go through property setters
index 469374e1b54a0a6468ab49a30f62952df3cf1840..277de5884cbfea1341be02d6971218e6470a793d 100644 (file)
@@ -20,7 +20,7 @@ Typical applications have little direct interaction with the `HTTPServer`
 class except to start a server at the beginning of the process
 (and even that is often done indirectly via `tornado.web.Application.listen`).
 
-.. versionchanged:: 3.3
+.. versionchanged:: 4.0
 
    The ``HTTPRequest`` class that used to live in this module has been moved
    to `tornado.httputil.HTTPServerRequest`.  The old name remains as an alias.
@@ -128,7 +128,7 @@ class HTTPServer(TCPServer, httputil.HTTPServerConnectionDelegate):
        servers if you want to create your listening sockets in some
        way other than `tornado.netutil.bind_sockets`.
 
-    .. versionchanged:: 3.3
+    .. versionchanged:: 4.0
        Added ``gzip``, ``chunk_size``, ``max_header_size``,
        ``idle_connection_timeout``, ``body_timeout``, ``max_body_size``
        arguments.  Added support for `.HTTPServerConnectionDelegate`
index 6e110d9035b1058529e052bf083a94724cb7b9de..7287b55dade388a46d9d9789461dcdfc66f7e0aa 100644 (file)
@@ -319,7 +319,7 @@ class HTTPServerRequest(object):
        are typically kept open in HTTP/1.1, multiple requests can be handled
        sequentially on a single connection.
 
-    .. versionchanged:: 3.3
+    .. versionchanged:: 4.0
        Moved from ``tornado.httpserver.HTTPRequest``.
     """
     def __init__(self, method=None, uri=None, version="HTTP/1.0", headers=None,
@@ -352,7 +352,7 @@ class HTTPServerRequest(object):
     def supports_http_1_1(self):
         """Returns True if this request supports HTTP/1.1 semantics.
 
-        .. deprecated:: 3.3
+        .. deprecated:: 4.0
            Applications are less likely to need this information with the
            introduction of `.HTTPConnection`.  If you still need it, access
            the ``version`` attribute directly.
@@ -375,7 +375,7 @@ class HTTPServerRequest(object):
     def write(self, chunk, callback=None):
         """Writes the given chunk to the response stream.
 
-        .. deprecated:: 3.3
+        .. deprecated:: 4.0
            Use ``request.connection`` and the `.HTTPConnection` methods
            to write the response.
         """
@@ -385,7 +385,7 @@ class HTTPServerRequest(object):
     def finish(self):
         """Finishes this HTTP request on the open connection.
 
-        .. deprecated:: 3.3
+        .. deprecated:: 4.0
            Use ``request.connection`` and the `.HTTPConnection` methods
            to write the response.
         """
@@ -449,7 +449,7 @@ class HTTPInputException(Exception):
     """Exception class for malformed HTTP requests or responses
     from remote sources.
 
-    .. versionadded:: 3.3
+    .. versionadded:: 4.0
     """
     pass
 
@@ -457,7 +457,7 @@ class HTTPInputException(Exception):
 class HTTPOutputException(Exception):
     """Exception class for errors in HTTP output.
 
-    .. versionadded:: 3.3
+    .. versionadded:: 4.0
     """
     pass
 
@@ -465,7 +465,7 @@ class HTTPOutputException(Exception):
 class HTTPServerConnectionDelegate(object):
     """Implement this interface to handle requests from `.HTTPServer`.
 
-    .. versionadded:: 3.3
+    .. versionadded:: 4.0
     """
     def start_request(self, server_conn, request_conn):
         """This method is called by the server when a new request has started.
@@ -491,7 +491,7 @@ class HTTPServerConnectionDelegate(object):
 class HTTPMessageDelegate(object):
     """Implement this interface to handle an HTTP request or response.
 
-    .. versionadded:: 3.3
+    .. versionadded:: 4.0
     """
     def headers_received(self, start_line, headers):
         """Called when the HTTP headers have been received and parsed.
@@ -531,7 +531,7 @@ class HTTPMessageDelegate(object):
 class HTTPConnection(object):
     """Applications use this interface to write their responses.
 
-    .. versionadded:: 3.3
+    .. versionadded:: 4.0
     """
     def write_headers(self, start_line, headers, chunk=None, callback=None):
         """Write an HTTP header block.
index cd59bfee0415701be5dde0f471b5179b68b93879..1a51fb0c45a0ca3ca5e8a2220dd8dcf241c6f9b2 100644 (file)
@@ -162,7 +162,7 @@ class IOLoop(Configurable):
     def clear_instance():
         """Clear the global `IOLoop` instance.
 
-        .. versionadded:: 3.3
+        .. versionadded:: 4.0
         """
         if hasattr(IOLoop, "_instance"):
             del IOLoop._instance
@@ -267,7 +267,7 @@ class IOLoop(Configurable):
 
         When an event occurs, ``handler(fd, events)`` will be run.
 
-        .. versionchanged:: 3.3
+        .. versionchanged:: 4.0
            Added the ability to pass file-like objects in addition to
            raw file descriptors.
         """
@@ -276,7 +276,7 @@ class IOLoop(Configurable):
     def update_handler(self, fd, events):
         """Changes the events we listen for ``fd``.
 
-        .. versionchanged:: 3.3
+        .. versionchanged:: 4.0
            Added the ability to pass file-like objects in addition to
            raw file descriptors.
         """
@@ -285,7 +285,7 @@ class IOLoop(Configurable):
     def remove_handler(self, fd):
         """Stop listening for events on ``fd``.
 
-        .. versionchanged:: 3.3
+        .. versionchanged:: 4.0
            Added the ability to pass file-like objects in addition to
            raw file descriptors.
         """
@@ -534,7 +534,7 @@ class IOLoop(Configurable):
         This method is provided for use by `IOLoop` subclasses and should
         not generally be used by application code.
 
-        .. versionadded:: 3.3
+        .. versionadded:: 4.0
         """
         try:
             return fd.fileno(), fd
@@ -551,7 +551,7 @@ class IOLoop(Configurable):
         implementations of ``IOLoop.close(all_fds=True)`` and should
         not generally be used by application code.
 
-        .. versionadded:: 3.3
+        .. versionadded:: 4.0
         """
         try:
             try:
index 3874bf75f05757eda26499c42b37d91976b03e4f..910abbc92fb5eb6e9406b13d2c21a0260f45dae9 100644 (file)
@@ -116,7 +116,7 @@ class BaseIOStream(object):
         :arg max_write_buffer_size: Amount of outgoing data to buffer;
             defaults to unlimited.
 
-        .. versionchanged:: 3.3
+        .. versionchanged:: 4.0
            Add the ``max_write_buffer_size`` parameter.  Changed default
            ``read_chunk_size`` to 64KB.
         """
@@ -203,7 +203,7 @@ class BaseIOStream(object):
         if more than ``max_bytes`` bytes have been read and the regex is
         not satisfied.
 
-        .. versionchanged:: 3.3
+        .. versionchanged:: 4.0
             Added the ``max_bytes`` argument.  The ``callback`` argument is
             now optional and a `.Future` will be returned if it is omitted.
         """
@@ -230,7 +230,7 @@ class BaseIOStream(object):
         if more than ``max_bytes`` bytes have been read and the delimiter
         is not found.
 
-        .. versionchanged:: 3.3
+        .. versionchanged:: 4.0
             Added the ``max_bytes`` argument.  The ``callback`` argument is
             now optional and a `.Future` will be returned if it is omitted.
         """
@@ -259,7 +259,7 @@ class BaseIOStream(object):
         If ``partial`` is true, the callback is run as soon as we have
         any bytes to return (but never more than ``num_bytes``)
 
-        .. versionchanged:: 3.3
+        .. versionchanged:: 4.0
             Added the ``partial`` argument.  The callback argument is now
             optional and a `.Future` will be returned if it is omitted.
         """
@@ -280,7 +280,7 @@ class BaseIOStream(object):
         If a callback is given, it will be run with the data as an argument;
         if not, this method returns a `.Future`.
 
-        .. versionchanged:: 3.3
+        .. versionchanged:: 4.0
             The callback argument is now optional and a `.Future` will
             be returned if it is omitted.
         """
@@ -308,7 +308,7 @@ class BaseIOStream(object):
         completed.  If `write` is called again before that `.Future` has
         resolved, the previous future will be orphaned and will never resolve.
 
-        .. versionchanged:: 3.3
+        .. versionchanged:: 4.0
             Now returns a `.Future` if no callback is given.
         """
         assert isinstance(data, bytes_type)
@@ -966,7 +966,7 @@ class IOStream(BaseIOStream):
         is ready.  Calling `IOStream` read methods before the socket is
         connected works on some platforms but is non-portable.
 
-        .. versionchanged:: 3.3
+        .. versionchanged:: 4.0
             If no callback is given, returns a `.Future`.
         """
         self._connecting = True
@@ -1021,7 +1021,7 @@ class IOStream(BaseIOStream):
         If a close callback is defined on this stream, it will be
         transferred to the new stream.
 
-        .. versionadded:: 3.3
+        .. versionadded:: 4.0
         """
         if (self._read_callback or self._read_future or
                 self._write_callback or self._write_future or
index dc30e94ffa1eb91dc25aff214534f1bc8ed3443d..b1564aa69080e7fefe5312e3b08594bcaf929e10 100644 (file)
@@ -459,7 +459,7 @@ def gen_test(func=None, timeout=None):
        The ``timeout`` argument and ``ASYNC_TEST_TIMEOUT`` environment
        variable.
 
-    .. versionchanged:: 3.3
+    .. versionchanged:: 4.0
        The wrapper now passes along ``*args, **kwargs`` so it can be used
        on functions with arguments.
     """
index dd2b5ef51371cc3747c8dee04a1261f964920277..7a3c694f68b616edc899b958238d3dd7028e4635 100644 (file)
@@ -820,7 +820,7 @@ class RequestHandler(object):
         if another flush occurs before the previous flush's callback
         has been run, the previous callback will be discarded.
 
-        .. versionchanged:: 3.3
+        .. versionchanged:: 4.0
            Now returns a `.Future` if no callback is given.
         """
         chunk = b"".join(self._write_buffer)
@@ -2367,7 +2367,7 @@ class StaticFileHandler(RequestHandler):
 
         .. versionadded:: 3.1
 
-        .. versionchanged:: 3.3
+        .. versionchanged:: 4.0
            This method is now always called, instead of only when
            partial results are requested.
         """
@@ -2533,7 +2533,7 @@ class GZipContentEncoding(OutputTransform):
 
     See http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.11
 
-    .. versionchanged:: 3.3
+    .. versionchanged:: 4.0
         Now compresses all mime types beginning with ``text/``, instead
         of just a whitelist. (the whitelist is still used for certain
         non-text mime types).
index c0065c7941b27ab9750f56bffaf261c94ef6f933..ee61d03394cf31bebed07cd37423ae46158c368d 100644 (file)
@@ -245,7 +245,7 @@ class WebSocketHandler(tornado.web.RequestHandler):
         phrase was supplied, these values will be available as the attributes
         ``self.close_code`` and ``self.close_reason``.
 
-        .. versionchanged:: 3.3
+        .. versionchanged:: 4.0
 
            Added ``close_code`` and ``close_reason`` attributes.
         """
@@ -266,7 +266,7 @@ class WebSocketHandler(tornado.web.RequestHandler):
         The ``code`` and ``reason`` arguments are ignored in the "draft76"
         protocol version.
 
-        .. versionchanged:: 3.3
+        .. versionchanged:: 4.0
 
            Added the ``code`` and ``reason`` arguments.
         """
@@ -292,7 +292,7 @@ class WebSocketHandler(tornado.web.RequestHandler):
         browsers, since WebSockets are allowed to bypass the usual same-origin
         policies and don't use CORS headers.
 
-        .. versionadded:: 3.3
+        .. versionadded:: 4.0
         """
         parsed_origin = urlparse(origin)
         origin = parsed_origin.netloc
@@ -885,7 +885,7 @@ class WebSocketClientConnection(simple_httpclient._HTTPConnection):
 
         .. versionadded:: 3.2
 
-        .. versionchanged:: 3.3
+        .. versionchanged:: 4.0
 
            Added the ``code`` and ``reason`` arguments.
         """
index 47a0590a799af814543650a5546ab279bdab4b03..8587862bd02941191382cb291f22dbb40471bf91 100644 (file)
@@ -77,7 +77,7 @@ else:
 class WSGIApplication(web.Application):
     """A WSGI equivalent of `tornado.web.Application`.
 
-    .. deprecated: 3.3::
+    .. deprecated:: 4.0
 
        Use a regular `.Application` and wrap it in `WSGIAdapter` instead.
     """
@@ -183,7 +183,7 @@ class WSGIAdapter(object):
     that it is not possible to use `.AsyncHTTPClient`, or the
     `tornado.auth` or `tornado.websocket` modules.
 
-    .. versionadded:: 3.3
+    .. versionadded:: 4.0
     """
     def __init__(self, application):
         if isinstance(application, WSGIApplication):