def bind_processor(self, dialect):
    datetime_time = datetime.time
    format_ = self._storage_format

    def process(value):
        if (value is None):
            return None
        elif isinstance(value, datetime_time):
            return (format_ % {'hour': value.hour, 'minute': value.minute, 'second': value.second, 'microsecond': value.microsecond})
        else:
            raise TypeError('SQLite Time type only accepts Python time objects as input.')
    return process
def bind_processor(self, dialect):
    datetime_time = datetime.time
    format_ = self._storage_format

    def process(value):
        if (value is None):
            return None
        elif isinstance(value, datetime_time):
            return (format_ % {'hour': value.hour, 'minute': value.minute, 'second': value.second, 'microsecond': value.microsecond})
        else:
            raise TypeError('SQLite Time type only accepts Python time objects as input.')
    return process