def _init_fp(self, fname, mode):
        self.fp = open(fname, mode, buffering=2048)

        if mode in "w":
            self.startWriting()

        if "r" in mode:
            # In order to determine when we have reached EOF
            self.filelen = os.path.getsize(fname)
            self.totalread = 0
            self.startReading()
dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/runtime/south/plugins/async/twistedimpl/filedescriptor.py/FD._init_fp/swapped operands of `in`