'return true if the given keyword is a ternary keyword
for this ControlLine'

def is_ternary(self, keyword):

    return (keyword in {'if': set(['else', 'elif']), 'try': set(['except', 'finally']), 'for': set(['else'])}.get(self.keyword, []))
