summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2014-04-03 19:19:13 +0200
committerFlorent Xicluna <florent.xicluna@gmail.com>2014-04-03 19:19:13 +0200
commit89ac126d1820b9c3ec6050cf69e315dcf5a487b7 (patch)
treeda8295f9e18e11cfb58533bfb68858a3f15e3d2f
parent197043d5aec03e08d769495fd140bf341c331168 (diff)
downloadpep8-89ac126d1820b9c3ec6050cf69e315dcf5a487b7.tar.gz
Fix line number and offset for E125 with multi-line strings; issue #220
-rwxr-xr-xpep8.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pep8.py b/pep8.py
index 79ccad1..b47e9d4 100755
--- a/pep8.py
+++ b/pep8.py
@@ -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):