circuitpython/tests/cpydiff/types_bytes_keywords.py

8 lines
223 B
Python
Raw Normal View History

"""
categories: Types,bytes
description: bytes(...) with keywords not implemented
cause: Unknown
workaround: Input the encoding format directly. eg. ``print(bytes('abc', 'utf-8'))``
"""
print(bytes('abc', encoding='utf8'))