compat#

Common compatiblity code.

Functions#

encode_for_env_var(→ str)

Environment names and values need to be string.

encode_environment(env)

encode_arguments(arguments)

isiterable(obj)

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

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

six_with_metaclass(meta, *bases)

Create a base class with a metaclass.

ensure_binary(value)

ensure_text_type(→ str)

ensure_unicode(value)

ensure_fs_path_encoding(value)

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)#
encode_arguments(arguments)#
isiterable(obj)#
open_utf8(file, mode='r', buffering=-1, encoding=None, errors=None, newline=None, closefd=True)#
open(file, mode='r', buffering=-1, encoding=None, errors=None, newline=None, closefd=True)#
six_with_metaclass(meta, *bases)#

Create a base class with a metaclass.

NoneType#
primitive_types = ()#
ensure_binary(value)#
ensure_text_type(value) str#
ensure_unicode(value)#
ensure_fs_path_encoding(value)#
ensure_utf8_encoding(value)#