diff options
Diffstat (limited to 'lexilla/test/examples/python/x.py')
-rw-r--r-- | lexilla/test/examples/python/x.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lexilla/test/examples/python/x.py b/lexilla/test/examples/python/x.py index 12c4b71df..57833c059 100644 --- a/lexilla/test/examples/python/x.py +++ b/lexilla/test/examples/python/x.py @@ -9,3 +9,11 @@ def depunctuate(s): else: d = d + " " return d + +import contextlib + +@contextlib.contextmanager +def singleuse(): + print("Before") + yield +with singleuse(): pass |