16 from .platform
import PY2
20 from .robottypes2
import (is_bytes, is_dict_like, is_integer, is_list_like,
21 is_number, is_string, is_unicode, is_tuple, type_name)
25 from .robottypes3
import (is_bytes, is_dict_like, is_integer, is_list_like,
26 is_number, is_string, is_unicode, is_tuple, type_name)
30 TRUE_STRINGS = {
'TRUE',
'YES',
'ON',
'1'}
31 FALSE_STRINGS = {
'FALSE',
'NO',
'OFF',
'0',
'NONE',
''}
51 return item.upper()
not in FALSE_STRINGS
def is_truthy(item)
Returns True or False depending is the item considered true or not.
def is_falsy(item)
Opposite of :func:is_truthy.