/usr/lib/python2.7/dist-packages/kombu/utils/time.py is in python-kombu 4.1.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 | """Time Utilities."""
from __future__ import absolute_import, unicode_literals
__all__ = ['maybe_s_to_ms']
def maybe_s_to_ms(v):
# type: (Optional[Union[int, float]]) -> int
"""Convert seconds to milliseconds, but return None for None."""
return int(float(v) * 1000.0) if v is not None else v
|