summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPanos Mavrogiorgos <pmav99@gmail.com>2019-04-22 22:07:34 +0300
committerPanos Mavrogiorgos <pmav99@gmail.com>2019-04-22 22:07:34 +0300
commit8ddf992183ac605f49929b7781dbc2540c38eb13 (patch)
treea71b394ceda50bcd54c3a8449f418c7b930c472d /src
parent61e53a4c905213a28d29fd6c2f0f467d23bf9702 (diff)
downloadpython-decorator-git-8ddf992183ac605f49929b7781dbc2540c38eb13.tar.gz
docs: Create ba decorator
Diffstat (limited to 'src')
-rw-r--r--src/tests/documentation.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tests/documentation.py b/src/tests/documentation.py
index 56c0e19..6a77614 100644
--- a/src/tests/documentation.py
+++ b/src/tests/documentation.py
@@ -547,6 +547,8 @@ In Python 3.2, ``GeneratorContextManager`` objects were enhanced with
a ``__call__`` method, so that they can be used as decorators, like so:
```python
+>>> ba = before_after('BEFORE', 'AFTER')
+>>>
>>> @ba # doctest: +SKIP
... def hello():
... print('hello')