def open(self, mode = "r"):
"""
Open the file.
:param mode: The mode to open the file in. See :py:func:`io.open` for
documentation.
"""
mode = ModeParser(mode)
mode.parse()
f = FileStream(self, mode)
#f = io.BufferedRandom(f)
if (mode.text):
f = io.TextIOWrapper(f)
return f
评论列表
文章目录