Skip to content

Commit 7ca10fe

Browse files
committed
rename variable
1 parent a925fe4 commit 7ca10fe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pycodestyle.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1266,16 +1266,16 @@ def break_after_binary_operator(logical_line, tokens):
12661266
Okay: var = (1 /\n -2)
12671267
Okay: var = (1 +\n -1 +\n -2)
12681268
"""
1269-
old_start = None
1269+
prev_start = None
12701270
for context in _break_around_binary_operators(tokens):
12711271
(token_type, text, previous_token_type, previous_text,
12721272
line_break, unary_context, start) = context
12731273
if (_is_binary_operator(previous_token_type, previous_text) and
12741274
line_break and
12751275
not unary_context and
12761276
not _is_binary_operator(token_type, text)):
1277-
yield old_start, "W504 line break after binary operator"
1278-
old_start = start
1277+
yield prev_start, "W504 line break after binary operator"
1278+
prev_start = start
12791279

12801280

12811281
@register_check

0 commit comments

Comments
 (0)