]> git.madduck.net Git - etc/vim.git/blob - tests/data/preview_context_managers/auto_detect/features_3_9.py

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Fix broken url in editors.md (#3885)
[etc/vim.git] / tests / data / preview_context_managers / auto_detect / features_3_9.py
1 # This file uses parenthesized context managers introduced in Python 3.9.
2
3
4 with \
5      make_context_manager1() as cm1, \
6      make_context_manager2() as cm2, \
7      make_context_manager3() as cm3, \
8      make_context_manager4() as cm4 \
9 :
10     pass
11
12
13 with (
14      new_new_new1() as cm1,
15      new_new_new2()
16 ):
17     pass
18
19
20 # output
21 # This file uses parenthesized context managers introduced in Python 3.9.
22
23
24 with (
25     make_context_manager1() as cm1,
26     make_context_manager2() as cm2,
27     make_context_manager3() as cm3,
28     make_context_manager4() as cm4,
29 ):
30     pass
31
32
33 with new_new_new1() as cm1, new_new_new2():
34     pass