From 0357e8fb3d341b4d72e97becd1262ba1ec0ab5b6 Mon Sep 17 00:00:00 2001 From: Ben Darnell Date: Sun, 2 Aug 2015 22:05:41 -0400 Subject: [PATCH] Add versionchanged tags for async statements. --- tornado/gen.py | 3 +++ tornado/locks.py | 6 ++++++ tornado/queues.py | 3 +++ 3 files changed, 12 insertions(+) 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: -- 2.47.2