instead of an IndexError in some cases (avoid IndexError by using slice
notation).
svn path=/main/trunk/; revision=10391
rlist.append([])
else:
- if head[-1] == "?": # Use reduce next group on fail.
+ if head[-1:] == "?": # Use reduce next group on fail.
# Pull any other use conditions and the following atom or list into a separate array
newdeparray = [head]
while isinstance(newdeparray[-1], str) and newdeparray[-1][-1] == "?":