From: noah morrison Date: Wed, 12 Nov 2014 14:30:46 +0000 (-0500) Subject: Removed unneeded if statement X-Git-Url: https://git.devinivas.org/?a=commitdiff_plain;h=e5a1b750ee7bd4e057b11c73405477007cba87e8;p=chevron.git Removed unneeded if statement --- diff --git a/entei.py b/entei.py index 6de10d4..21cf562 100755 --- a/entei.py +++ b/entei.py @@ -76,13 +76,12 @@ def tokenize(template): while not template.is_finished: literal = grab_literal() - if literal != '': - if literal.find('\n') != -1 or is_standalone: - padding = literal.split('\n')[-1] - if padding.isspace() or padding == '': - is_standalone = True - else: - is_standalone = False + if literal.find('\n') != -1 or is_standalone: + padding = literal.split('\n')[-1] + if padding.isspace() or padding == '': + is_standalone = True + else: + is_standalone = False if template.is_finished: yield ('literal', literal)