aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/parso/py3/tests/normalizer_issue_files/E12_third.py
blob: 26697fed7359d67914480048bbd6795da1d5460a (plain) (blame)
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
#: E128+1
foo(1, 2, 3,
4, 5, 6)
#: E128+1:1
foo(1, 2, 3,
 4, 5, 6)
#: E128+1:2
foo(1, 2, 3,
  4, 5, 6)
#: E128+1:3
foo(1, 2, 3,
   4, 5, 6)
foo(1, 2, 3,
    4, 5, 6)
#: E127+1:5
foo(1, 2, 3,
     4, 5, 6)
#: E127+1:6
foo(1, 2, 3,
      4, 5, 6)
#: E127+1:7
foo(1, 2, 3,
       4, 5, 6)
#: E127+1:8
foo(1, 2, 3,
        4, 5, 6)
#: E127+1:9
foo(1, 2, 3,
         4, 5, 6)
#: E127+1:10
foo(1, 2, 3,
          4, 5, 6)
#: E127+1:11
foo(1, 2, 3,
           4, 5, 6)
#: E127+1:12
foo(1, 2, 3,
            4, 5, 6)
#: E127+1:13
foo(1, 2, 3,
             4, 5, 6)
if line_removed:
    #: E128+1:14 E128+2:14
    self.event(cr, uid,
              name="Removing the option for contract",
              description="contract line has been removed",
               )

if line_removed:
    self.event(cr, uid,
               #: E127:16
                name="Removing the option for contract",
               #: E127:16
                description="contract line has been removed",
               #: E124:16
                )
rv.update(d=('a', 'b', 'c'),
          #: E127:13
             e=42)

#: E135+2:17
rv.update(d=('a' + 'b', 'c'),
          e=42, f=42
                 + 42)
rv.update(d=('a' + 'b', 'c'),
          e=42, f=42
                  + 42)
#: E127+1:26
input1 = {'a': {'calc': 1 + 2}, 'b': 1
                          + 42}
#: E128+2:17
rv.update(d=('a' + 'b', 'c'),
          e=42, f=(42
                 + 42))

if True:
    def example_issue254():
        #: 
        return [node.copy(
                    (
                        #: E121:16 E121+3:20
                replacement
                        # First, look at all the node's current children.
                        for child in node.children
                    for replacement in replace(child)
                    ),
                    dict(name=token.undefined)
                )]
# TODO multiline docstring are currently not handled. E125+1:4?
if ("""
    """):
    pass

# TODO same
for foo in """
    abc
    123
    """.strip().split():
    hello(foo)
abc = dedent(
    '''
        mkdir -p ./{build}/
        mv ./build/ ./{build}/%(revision)s/
    '''.format(
        #: E121:4 E121+1:4 E123+2:0
    build='build',
    # more stuff
)
)
#: E701+1: E122+1
if True:\
hello(True)

#: E128+1
foobar(a
, end=' ')