Skip to content

Commit bfd5207

Browse files
committed
gyb: special case list for conversion
In order to deal with encoding conversions for Python 2 and Python 3, the string had to be passed through CStringIO for Python 2. On Python 3, the strings are unicode.
1 parent 4a704ac commit bfd5207

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)