Compat. utilities - kombu.utils.compat

kombu.utils.compat

Helps compatibility with older Python versions.

kombu.utils.compat.get_errno(exc)[source]

socket.error and IOError first got the .errno attribute in Py2.7

kombu.utils.compat.timedelta_seconds(delta)[source]

Convert datetime.timedelta to seconds.

Doesn’t account for negative values.