This commit is contained in:
Dave Halter
2017-08-05 23:13:44 +02:00
parent 065081f227
commit db3c635fcd
+2 -2
View File
@@ -633,8 +633,8 @@ class ErrorFinder(Normalizer):
if comp_for is not None and comp_for.type == 'comp_for': if comp_for is not None and comp_for.type == 'comp_for':
# {**{} for a in [1]} # {**{} for a in [1]}
message = "dict unpacking cannot be used in dict comprehension" message = "dict unpacking cannot be used in dict comprehension"
# TODO probably this should get a better end_pos including # TODO this should probably get a better end_pos including
# the next sibling of leaf. # the next sibling of leaf.
self._add_syntax_error(message, leaf) self._add_syntax_error(message, leaf)
return '' return ''