def __init__(self, bus=None, force=False):
        """
        Initialize and (optionally) open an i2c bus connection.

        :param bus: i2c bus number (e.g. 0 or 1). If not given, a subsequent
            call to ``open()`` is required.
        :type bus: int
        :param force: force using the slave address even when driver is
            already using it.
        :type force: boolean
        """
        self.fd = None
        self.funcs = 0
        if bus is not None:
            self.open(bus)
        self.address = None
        self.force = force
        self._force_last = None
def __init__ ( self , bus = None , force = False ) : self . fd = None self . funcs = 0 if bus is not None : self . open ( bus ) self . address = None self . force = force self . _force_last = None
Initialize and (optionally) open an i2c bus connection.

        :param bus: i2c bus number (e.g. 0 or 1). If not given, a subsequent
            call to ``open()`` is required.
        :type bus: int
        :param force: force using the slave address even when driver is
            already using it.
        :type force: boolean