def file(self): openfile = lambda: open(self.path, "rb+") if MCRegionFile.holdFileOpen: if self._file is None: self._file = openfile() return notclosing(self._file) else: return openfile()
def file(self): openfile = lambda: file(self.path, "rb+") if PocketChunksFile.holdFileOpen: if self._file is None: self._file = openfile() return notclosing(self._file) else: return openfile()
def file(self): openfile = lambda: file(self.path, "rb+") if PocketChunksFile.holdFileOpen: if self._file is None: self._file = openfile() return notclosing(self._file) else: return openfile()
def file(self): openfile = lambda: open(self.path, "rb+") if MCRegionFile.holdFileOpen: if self._file is None: self._file = openfile() return notclosing(self._file) else: return openfile()