--- SpecCheck.py +++ SpecCheck.py @@ -90,7 +90,7 @@ elif wantmore: tmp += ' ' + tok wantmore = 0 - elif tok[0] in ('=', '<', '>'): + elif len(tok) and tok[0] in ('=', '<', '>'): tmp += ' ' + tok wantmore = 1 else: