File: with_wickedness.py

package info (click to toggle)
python-libcst 1.8.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,240 kB
  • sloc: python: 78,096; makefile: 15; sh: 2
file content (52 lines) | stat: -rw-r--r-- 688 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# with_wickedness

with foo :
    pass

with foo, bar:
    pass

with (foo, bar):
    pass

with (foo, bar,):
    pass

with foo, bar as bar:
    pass

with (foo, bar as bar):
    pass

with (foo, bar as bar,):
    pass

async def f():
    async with foo:

        with bar:
            pass

    async with foo :
        pass

    async with foo, bar:
        pass

    async with (foo, bar):
        pass

    async with (foo, bar,):
        pass

    async with foo, bar as bar:
        pass

    async with (foo, bar as bar):
        pass

    async with (foo, bar as bar,):
        pass

    async  with  foo(1+1)  as  bar  , 1  as (a, b, ) , 2 as [a, b] , 3 as a[b]  :
        pass