update pep8.py again

This commit is contained in:
Dmitry Jemerov
2013-03-01 15:58:02 +01:00
parent 30110c2371
commit 1f28f83453
+1 -1
View File
@@ -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: