Lines Matching refs:stream
58 stream = io.StringIO()
59 yaml.dump(value, stream, encoding=encoding, allow_unicode=allow_unicode)
60 data2 = stream.getvalue()
65 stream = io.BytesIO()
68 yaml.dump(value, stream, encoding=encoding, allow_unicode=allow_unicode)
76 yaml.dump(value, stream, encoding=encoding, allow_unicode=allow_unicode)
77 data4 = stream.getvalue()
93 stream = io.StringIO()
94 yaml.dump(data, stream, allow_unicode=True)
95 data1 = stream.getvalue()
96 stream = io.BytesIO()
97 yaml.dump(data, stream, encoding='utf-16-le', allow_unicode=True)
98 data2 = stream.getvalue().decode('utf-16-le')[1:]
99 with open(filename, 'w', encoding='utf-16-le') as stream:
100 yaml.dump(data, stream, allow_unicode=True)
103 with open(filename, 'wb') as stream:
104 yaml.dump(data, stream, encoding='utf-8', allow_unicode=True)
125 stream = io.StringIO()
127 stream = io.BytesIO()
128 yaml.emit(yaml.parse(input), stream, allow_unicode=True)
129 output2 = stream.getvalue()