noc.core.comp

Module Contents

noc.core.comp.DEFAULT_ENCODING = utf-8
noc.core.comp.smart_bytes(s, encoding=DEFAULT_ENCODING)
Convert strings to bytes when necessary
noc.core.comp.smart_text(s, errors='strict', encoding=DEFAULT_ENCODING)
Convert bytes to string when necessary
noc.core.comp.bord(x)