def td2str(td):
    ''' Convert a timedelta to a string formatted like '3h'.
    
        Will not be necessary when https://github.com/malthe/pq/pull/5 is released.
    '''
    return '{}s'.format(td.seconds + td.days * 86400)
dataset/ETHPy150Open openaddresses/machine/openaddr/ci/__init__.py/td2str/original