diff options
author | Sam Vilain <svilain@saymedia.com> | 2012-05-27 14:20:54 -0700 |
---|---|---|
committer | Sam Vilain <svilain@saymedia.com> | 2012-05-27 14:20:54 -0700 |
commit | 9e54fd1245074cdac316ee4f29b9052694a10138 (patch) | |
tree | 54e5c34d19fbec7e6cd682194dacb58cfdfd2ac1 /testsuite/E12.py | |
parent | 0bfe264f037ad1c908850c082d24f01e97e104cd (diff) | |
download | pep8-9e54fd1245074cdac316ee4f29b9052694a10138.tar.gz |
Fix an E120 false positive
If there was a bracketed expression closed on the same line
inside a visual indent, the code expected indenting to continue
at the indent level of the last bracketed sub–expression. To
fix, update the current visual indent level as they are popped
off the stack.
Diffstat (limited to 'testsuite/E12.py')
-rw-r--r-- | testsuite/E12.py | 4 |
1 files changed, 4 insertions, 0 deletions
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)) |