From: Ben Darnell Date: Mon, 3 Aug 2015 02:05:41 +0000 (-0400) Subject: Add versionchanged tags for async statements. X-Git-Tag: v4.3.0b1~63^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0357e8fb3d341b4d72e97becd1262ba1ec0ab5b6;p=thirdparty%2Ftornado.git Add versionchanged tags for async statements. --- diff --git a/tornado/gen.py b/tornado/gen.py index c11c1bd9b..56c5f3737 100644 --- a/tornado/gen.py +++ b/tornado/gen.py @@ -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: diff --git a/tornado/locks.py b/tornado/locks.py index b605e8027..746b1977b 100644 --- a/tornado/locks.py +++ b/tornado/locks.py @@ -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) diff --git a/tornado/queues.py b/tornado/queues.py index bc57e2981..129b204e3 100644 --- a/tornado/queues.py +++ b/tornado/queues.py @@ -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: