def read(self, length=1):
        """
        Read the indicated number of bytes from the port
        """
        # If too many bytes would be read, raise exception
        if len(self.data) > self.read_index + length:
            if self.silent_on_empty:
                sys.exit(0)
            else:
                raise ValueError("Not enough bytes exist!")
        
        read_data = self.data[self.read_index:self.read_index + length]
        self.read_index += length
        
        return read_data
dataset/ETHPy150Open thom-nic/python-xbee/xbee/tests/Fake.py/FakeReadDevice.read/swapped operands of `>`