diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2014-04-03 19:19:13 +0200 |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2014-04-03 19:19:13 +0200 |
commit | 89ac126d1820b9c3ec6050cf69e315dcf5a487b7 (patch) | |
tree | da8295f9e18e11cfb58533bfb68858a3f15e3d2f | |
parent | 197043d5aec03e08d769495fd140bf341c331168 (diff) | |
download | pep8-89ac126d1820b9c3ec6050cf69e315dcf5a487b7.tar.gz |
Fix line number and offset for E125 with multi-line strings; issue #220
-rwxr-xr-x | pep8.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -560,11 +560,12 @@ def continued_indentation(logical_line, tokens, indent_level, hang_closing, rel_indent[end[0] - first_row] = rel_indent[row] if indent_next and expand_indent(line) == indent_level + 4: + pos = (start[0], indent[0] + 4) if visual_indent: code = "E129 visually indented line" else: code = "E125 continuation line" - yield (last_indent, "%s with same indent as next logical line" % code) + yield pos, "%s with same indent as next logical line" % code def whitespace_before_parameters(logical_line, tokens): |