Fix an issue with slice indexing.

This commit is contained in:
Dave Halter committed 2016-07-14 18:28:24 +02:00
1 parent 3a0008ea80
commit 218278af8d
3 files changed
+11 -2

No files matched your search

+1 -1
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: