Skip to content

Commit b4c660a

Browse files
authored
Merge pull request #1166 from PyCQA/same-offsets
make E231 offsets match pycodestyle 2.10
2 parents 0e8ca68 + 5f2dc86 commit b4c660a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pycodestyle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -895,7 +895,7 @@ def missing_whitespace(logical_line, tokens):
895895
elif text == ',' and next_char in ')]':
896896
pass
897897
else:
898-
yield end, f'E231 missing whitespace after {text!r}'
898+
yield start, f'E231 missing whitespace after {text!r}'
899899

900900
if need_space:
901901
if start != prev_end:

testsuite/E12.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ def example_issue254():
366366
# more stuff
367367
)
368368
)
369-
#: E701:1:8 E231:1:9 E122:2:1 E203:4:8 E128:5:1
369+
#: E701:1:8 E231:1:8 E122:2:1 E203:4:8 E128:5:1
370370
if True:\
371371
print(True)
372372

0 commit comments

Comments
 (0)