diff options
author | Anthony Sottile <asottile@umich.edu> | 2020-03-23 09:11:43 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-23 09:11:43 -0700 |
commit | 19a3925a89c71d422b98363d9ccfa8903a65b707 (patch) | |
tree | 59e058561e613f08f5358737fd1305506a051eba /pycodestyle.py | |
parent | 686c84b44029bee9bb5ccb6002990e758834b311 (diff) | |
parent | 9184238b5668829759babcef61a70b2a6d433162 (diff) | |
download | pep8-19a3925a89c71d422b98363d9ccfa8903a65b707.tar.gz |
Merge pull request #913 from anntzer/afteronelinerblock
Correctly allow *two* blank lines after a block of one-liners.
Diffstat (limited to 'pycodestyle.py')
-rwxr-xr-x | pycodestyle.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pycodestyle.py b/pycodestyle.py index b9a37f0..235532c 100755 --- a/pycodestyle.py +++ b/pycodestyle.py @@ -1797,6 +1797,7 @@ def expand_indent(line): >>> expand_indent(' \t') 16 """ + line = line.rstrip('\n\r') if '\t' not in line: return len(line) - len(line.lstrip()) result = 0 |