#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from io import StringIO
from io import BytesIO


def test_string_io():
    f = StringIO()
    f.write('hello,')
    f.write('world!')
    print(f.getvalue())


def test_bytes_io():
    f = BytesIO()
    f.write(b'hello,')
    f.write(b'world!')
    print(f.getvalue())


if __name__ == '__main__':
    test_string_io()
    test_bytes_io()

eba3531e7fa7a5e9aaf914539c5d12af47ad8d42
<mask token>


def test_bytes_io():
    f = BytesIO()
    f.write(b'hello,')
    f.write(b'world!')
    print(f.getvalue())


<mask token>

<mask token>


def test_string_io():
    f = StringIO()
    f.write('hello,')
    f.write('world!')
    print(f.getvalue())


def test_bytes_io():
    f = BytesIO()
    f.write(b'hello,')
    f.write(b'world!')
    print(f.getvalue())


<mask token>

<mask token>


def test_string_io():
    f = StringIO()
    f.write('hello,')
    f.write('world!')
    print(f.getvalue())


def test_bytes_io():
    f = BytesIO()
    f.write(b'hello,')
    f.write(b'world!')
    print(f.getvalue())


if __name__ == '__main__':
    test_string_io()
    test_bytes_io()

from io import StringIO
from io import BytesIO


def test_string_io():
    f = StringIO()
    f.write('hello,')
    f.write('world!')
    print(f.getvalue())


def test_bytes_io():
    f = BytesIO()
    f.write(b'hello,')
    f.write(b'world!')
    print(f.getvalue())


if __name__ == '__main__':
    test_string_io()
    test_bytes_io()

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from io import StringIO
from io import BytesIO


def test_string_io():
    f = StringIO()
    f.write('hello,')
    f.write('world!')
    print(f.getvalue())


def test_bytes_io():
    f = BytesIO()
    f.write(b'hello,')
    f.write(b'world!')
    print(f.getvalue())


if __name__ == '__main__':
    test_string_io()
    test_bytes_io()
