diff options
-rwxr-xr-x | pep8.py | 2 | ||||
-rw-r--r-- | testsuite/E12.py | 4 |
2 files changed, 6 insertions, 0 deletions
@@ -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)) |