Skip to content

Commit 9fd6df6

Browse files
authored
Merge pull request swiftlang#33043 from compnerd/list
gyb: special case list for conversion
2 parents 8788317 + bfd5207 commit 9fd6df6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/gyb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ def execute(self, context):
737737
result_string = None
738738
if isinstance(result, Number) and not isinstance(result, Integral):
739739
result_string = repr(result)
740-
elif isinstance(result, Integral):
740+
elif isinstance(result, Integral) or isinstance(result, list):
741741
result_string = str(result)
742742
else:
743743
result_string = StringIO(result).read()

0 commit comments

Comments
 (0)