From 1f28f8345337e5ed9c4187b9e4f300bc07dc135d Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Fri, 1 Mar 2013 15:02:24 +0100 Subject: [PATCH] update pep8.py again --- python/helpers/pep8.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/helpers/pep8.py b/python/helpers/pep8.py index 60e85f373b0d..2ce7554840cc 100644 --- a/python/helpers/pep8.py +++ b/python/helpers/pep8.py @@ -256,7 +256,7 @@ def blank_lines(logical_line, blank_lines, indent_level, line_number, E303: def a():\n\n\n\n pass E304: @decorator\n\ndef a():\n pass """ - if line_number == 1: + if line_number < 3 and not previous_logical: return # Don't expect blank lines before the first line if previous_logical.startswith('@'): if blank_lines: