summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpep8.py2
-rw-r--r--testsuite/E12.py4
2 files changed, 6 insertions, 0 deletions
diff --git a/pep8.py b/pep8.py
index d3a7855..b875a80 100755
--- a/pep8.py
+++ b/pep8.py
@@ -560,6 +560,8 @@ def continuation_line_indentation(logical_line, tokens, indent_level):
if len(parens[open_line]) > 0:
parens[open_line].pop()
break
+ if len(parens[open_line]):
+ visual_min[depth] = parens[open_line][-1][1]
if indent_next and rel_indent[-1][1] == 4:
return(last_indent, "E126 statement with indented block ends "
diff --git a/testsuite/E12.py b/testsuite/E12.py
index 0f2da14..d9de328 100644
--- a/testsuite/E12.py
+++ b/testsuite/E12.py
@@ -146,3 +146,7 @@ print 'l.{line}\t{pos}\t{name}\t{text}'.format(
name=tokenize.tok_name[token[0]],
text=repr(token[1]),
)
+#: Okay
+if os.path.exists(os.path.join(path, PEP8_BIN)):
+ cmd = ([os.path.join(path, PEP8_BIN)] +
+ self._pep8_options(targetfile))