skip newline at end of code

This commit is contained in:
Akinori Hattori
2014-07-17 18:29:00 +09:00
parent feae67484c
commit 3f75ea5cc7

View File

@@ -269,6 +269,11 @@ class FastParser(use_metaclass(CachedFastParser)):
is_decorator = False
current_lines.append(l)
if current_lines:
# skip newline at end of code,
# since it is not counted by Parser
if not current_lines[-1]:
del current_lines[-1]
if current_lines:
yield gen_part()