From: noah morrison Date: Sat, 15 Nov 2014 03:38:46 +0000 (-0500) Subject: Use endswith instead of splicing X-Git-Url: https://git.devinivas.org/?a=commitdiff_plain;h=4334324bf9d5f3336e20db45c54faa46d636210a;p=chevron.git Use endswith instead of splicing --- diff --git a/entei.py b/entei.py index e68ae40..b0800a0 100755 --- a/entei.py +++ b/entei.py @@ -102,7 +102,7 @@ def tokenize(template): template.seek(template.tell() - 1) elif tag_type == 'set delimiter?': - if tag_key[-1] == '=': + if tag_key.endswith('='): dels = tag_key[:-1].strip().split(' ') l_del, r_del = dels[0], dels[-1]