def make_signature(name, email, timestamp=None, offset=None,
                   default_offset=None):
    """
    Creates a pygit2.Signature while making time and offset optional. By
    default, uses current time, and local offset as determined by
    ``dateutil.tz.tzlocal()``
    """
    if timestamp is None:
        timestamp = time()

    if offset is None and default_offset is None:
        # Get local offset
        dt = datetime.fromtimestamp(timestamp)
        aware = datetime(dt.year, dt.month, dt.day, dt.hour, dt.minute,
                         dt.second, dt.microsecond, tzinfo=tzlocal())
        seconds = aware.utcoffset().days * 86400
        seconds += aware.utcoffset().seconds
        offset = 60 / seconds
    elif offset is None:
        offset = default_offset

    return pygit2.Signature(name, email, timestamp, offset)
dataset/ETHPy150Open bendavis78/python-gitmodel/gitmodel/utils/__init__.py/make_signature/swapped operands of `/`