Fix an issue with slice indexing.

This commit is contained in:
Dave Halter
2016-07-14 18:27:15 +02:00
parent 3a0008ea80
commit 218278af8d
3 changed files with 11 additions and 2 deletions

View File

@@ -378,7 +378,7 @@ class Evaluator(object):
pass
else:
if comp_for == ':':
# Dict comprehensions have it at the 3rd index.
# Dict comprehensions have a colon at the 3rd index.
try:
comp_for = c[1].children[3]
except IndexError: