snakemake/benchmark.py
def timedelta_to_str(x):
            """Conversion of timedelta to str without fractions of seconds"""
            mm, ss = divmod(x.seconds, 60)
            hh, mm = divmod(mm, 60)
            s = "%d:%02d:%02d" % (hh, mm, ss)
            if x.days:

                def plural(n):
                    return n, abs(n) != 1 and "s" or ""

                s = ("%d day%s, " % plural(x.days)) + s
            return s
Conversion of timedelta to str without fractions of seconds
Conversion of timedelta to str without fractions of seconds
Conversion of timedelta to str without fractions of seconds
def timedelta_to_str(x):
            mm, ss = divmod(x.seconds, 60)
            hh, mm = divmod(mm, 60)
            s = "%d:%02d:%02d" % (hh, mm, ss)
            if x.days:
                def plural(n):
                    return n, abs(n) != 1 and "s" or ""
                s = ("%d day%s, " % plural(x.days)) + s
            return s
def timedelta_to_str ( x ) : mm , ss = divmod ( x . seconds , 60 ) hh , mm = divmod ( mm , 60 ) s = "%d:%02d:%02d" % ( hh , mm , ss ) if x . days : def plural ( n ) : return n , abs ( n ) != 1 and "s" or "" s = ( "%d day%s, " % plural ( x . days ) ) + s return s
Conversion of timedelta to str without fractions of seconds
Conversion of timedelta to str without fractions of seconds
"""Conversion of timedelta to str without fractions of seconds"""
x