]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Doc cleanups.
authorBen Darnell <ben@bendarnell.com>
Tue, 27 Nov 2012 02:46:16 +0000 (21:46 -0500)
committerBen Darnell <ben@bendarnell.com>
Tue, 27 Nov 2012 02:47:15 +0000 (21:47 -0500)
* Fix doc generation for httpclient.py (unescaped \r\n)
* Manually specify signature of Template constructor
* Include IOLoop.time

Closes #644.

tornado/httpclient.py
tornado/template.py
website/sphinx/conf.py
website/sphinx/ioloop.rst
website/sphinx/template.rst

index 945e12b3194965c61162cbde6366160582aeb1c8..7359a76cefb05591ace17beadf3abe0a7ba207bf 100644 (file)
@@ -221,7 +221,7 @@ class HTTPRequest(object):
                  validate_cert=None, ca_certs=None,
                  allow_ipv6=None,
                  client_key=None, client_cert=None):
-        """Creates an `HTTPRequest`.
+        r"""Creates an `HTTPRequest`.
 
         All parameters except `url` are optional.
 
index 8c045c561a0d9681a8dd244272afe01f17a6dd27..0cd8124e8e5c44a7fca487df99b7c1100f92ef15 100644 (file)
@@ -203,6 +203,9 @@ class Template(object):
     We compile into Python from the given template_string. You can generate
     the template from variables with generate().
     """
+    # note that the constructor's signature is not extracted with
+    # autodoc because _UNSET looks like garbage.  When changing
+    # this signature update website/sphinx/template.rst too.
     def __init__(self, template_string, name="<string>", loader=None,
                  compress_whitespace=None, autoescape=_UNSET):
         self.name = name
index 86992f44e59e6fc26ff273f120ddc8c1057e1af0..f2509aa5d9818c54dd7e281e751c640bdc643576 100644 (file)
@@ -30,6 +30,9 @@ coverage_ignore_classes = [
     "Runner",
     "YieldPoint",
 
+    # tornado.ioloop
+    "PollIOLoop",
+
     # tornado.web
     "ChunkedTransferEncoding",
     "GZipContentEncoding",
index ce7fdd8f43768c1a0bd8c05b97fe2c20a1956dc5..ec64dae811eacbbc17f9c6e948b10aa9ca56c85b 100644 (file)
    .. automethod:: IOLoop.update_handler
    .. automethod:: IOLoop.remove_handler
 
-   Timeouts
-   ^^^^^^^^
+   Callbacks and timeouts
+   ^^^^^^^^^^^^^^^^^^^^^^
 
    .. automethod:: IOLoop.add_callback
    .. automethod:: IOLoop.add_callback_from_signal
    .. automethod:: IOLoop.add_future
    .. automethod:: IOLoop.add_timeout
    .. automethod:: IOLoop.remove_timeout
+   .. automethod:: IOLoop.time
    .. autoclass:: PeriodicCallback
       :members:
 
index 40d0be2b823131bbf34ab854d2c3309608a100e0..caf345d252822df2fa153d95e1cc2c021fa062ab 100644 (file)
@@ -6,7 +6,7 @@
    Class reference
    ---------------
 
-   .. autoclass:: Template
+   .. autoclass:: Template(template_string, name="<string>", loader=None, compress_whitespace=None, autoescape="xhtml_escape")
       :members:
 
    .. autoclass:: BaseLoader