inputstream.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:v2ex-tornado-2 作者: coderyy 项目源码 文件源码
def reset(self):
        self.dataStream = codecs.getreader(self.charEncoding[0])(self.rawStream,
                                                                 'replace')

        self.chunk = u""
        self.chunkSize = 0
        self.chunkOffset = 0
        self.errors = []

        # number of (complete) lines in previous chunks
        self.prevNumLines = 0
        # number of columns in the last line of the previous chunk
        self.prevNumCols = 0

        #Deal with CR LF and surrogates split over chunk boundaries
        self._bufferedCharacter = None
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号