add copyanno for safety

This commit is contained in:
zilinzhu 2020-03-23 22:58:01 +08:00
parent e9e0d0f2bc
commit 1a1b07304b

View File

@ -144,6 +144,7 @@ class BreakTransformer(converter.Base):
orelse=node.orelse)
new_for_node = node[0]
anno.copyanno(original_node, new_for_node, 'extra_test')
anno.copyanno(original_node, new_for_node, anno.Basic.DIRECTIVES)
return node