def Load(self):
        fname = User.User.OwnFile(self._name, "usermemo")

        try:
            os.stat(fname)
        except OSError as exc:
            data = self.read()
            if (data is None):
                raise ServerError("can't load usermemo for %s" % self._name)

            try:
                with open(fname, "wb") as f:
                    f.write(data)
            except IOError:
                raise ServerError("can't write usermemo for %s" % self._name)

        try:
            fmemo = open(fname, "r+b")
        except __HOLE__:
            raise ServerError("can't open usermemo for %s" % self._name)

        (self._memo, _) = Util.Mmap(fmemo, mmap.PROT_READ | mmap.PROT_WRITE, mmap.MAP_SHARED)
        fmemo.close()
        if (self._memo == None):
            raise ServerError("can't mmap usermemo for %s" % self._name)

        return True
dataset/ETHPy150Open HenryHu/pybbs/UserMemo.py/UserMemo.Load