def toint(number):
    if isinstance(number, float):
        if number > 1:
            number = round(number, 0)
        else:
            # The following solves when image has small dimensions (like 1x54)
            # then scale factor 1 * 0.296296 and `number` will store `0`
            # that will later raise ZeroDivisionError.
            number = round(math.ceil(number), 0)
    return int(number)
If there is no address information for the hostname passed to
dataset/ETHPy150Open mariocesar/sorl-thumbnail/sorl/thumbnail/helpers.py/toint--crossover with--dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/names/test/test_hosts.py/SearchHostsFileTests.test_notFoundAddress