instead of an IndexError in some cases (avoid IndexError by using slice
notation). (trunk r10391)
svn path=/main/branches/2.1.2/; revision=10407
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] == "?":