compat#

Common compatibility code.

Functions#

encode_for_env_var(→ str)

Environment names and values need to be string.

encode_environment(env)

isiterable(obj)

open_utf8(file[, mode, buffering, encoding, errors, ...])

ensure_binary(value)

ensure_text_type(→ str)

ensure_utf8_encoding(value)

Attributes#

on_win#
on_mac#
on_linux#
ENCODE_ENVIRONMENT = True#
encode_for_env_var(value) str#

Environment names and values need to be string.

encode_environment(env)#
isiterable(obj)#
open_utf8(file, mode='r', buffering=-1, encoding=None, errors=None, newline=None, closefd=True)#
NoneType#
primitive_types = ()#
ensure_binary(value)#
ensure_text_type(value) str#
ensure_utf8_encoding(value)#