]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Add versionchanged tags for async statements.
authorBen Darnell <ben@bendarnell.com>
Mon, 3 Aug 2015 02:05:41 +0000 (22:05 -0400)
committerBen Darnell <ben@bendarnell.com>
Mon, 3 Aug 2015 02:05:41 +0000 (22:05 -0400)
tornado/gen.py
tornado/locks.py
tornado/queues.py

index c11c1bd9bac398b1e5a3dc8f60c6123f102fa591..56c5f373703ea4255f147b82852abf757bd7708d 100644 (file)
@@ -346,6 +346,9 @@ class WaitIterator(object):
 
     .. versionadded:: 4.1
 
+    .. versionchanged:: 4.3
+       Added ``async for`` support in Python 3.5.
+
     """
     def __init__(self, *args, **kwargs):
         if args and kwargs:
index b605e8027b4fbff87447af5d037ea6da912d3aef..746b1977b0157dc6d059841aaa926d8dffedb872 100644 (file)
@@ -338,6 +338,9 @@ class Semaphore(_TimeoutGarbageCollector):
 
             # Now the semaphore has been released.
             print("Worker %d is done" % worker_id)
+
+    .. versionchanged:: 4.3
+       Added ``async with`` support in Python 3.5.
     """
     def __init__(self, value=1):
         super(Semaphore, self).__init__()
@@ -459,6 +462,9 @@ class Lock(object):
     ...        pass
     ...
     ...    # Now the lock is released.
+
+    .. versionchanged:: 3.5
+       Added ``async with`` support in Python 3.5.
     """
     def __init__(self):
         self._block = BoundedSemaphore(value=1)
index bc57e29812d72939f54d2cd945f884a8fcf95be9..129b204e362cbfb6f8f3630767821d7cbb711e36 100644 (file)
@@ -116,6 +116,9 @@ class Queue(object):
                 finally:
                     q.task_done()
 
+    .. versionchanged:: 4.3
+       Added ``async for`` support in Python 3.5.
+
     """
     def __init__(self, maxsize=0):
         if maxsize is None: