Source code for bintray.utils
[docs]def bool_to_number(value):
""" Convert boolean result into numeric string
:param value: Any boolean value
:return: "1" when True. Otherwise, "0"
"""
return 1 if value else 0
[docs]def bool_to_number(value):
""" Convert boolean result into numeric string
:param value: Any boolean value
:return: "1" when True. Otherwise, "0"
"""
return 1 if value else 0