def revreadlines(self):
self.fp.seek(<NUM_LIT:0>, <NUM_LIT:2>)<EOL>pos = self.fp.tell()<EOL>buf = b'<STR_LIT>'<EOL>while <NUM_LIT:0> < pos:<EOL><INDENT>prevpos = pos<EOL>pos = max(<NUM_LIT:0>, pos-self.BUFSIZ)<EOL>self.fp.seek(pos)<EOL>s = self.fp.read(prevpos-pos)<EOL>if not s:<EOL><INDENT>break<EOL><DEDENT>while <NUM_LIT:1>:<EOL><INDENT>n = max(s.rfind(b'<STR_LIT:\r>'), s.rfind(b'<STR_LIT:\n>'))<EOL>if n == -<NUM_LIT:1>:<EOL><INDENT>buf = s + buf<EOL>break<EOL><DEDENT>yield s[n:]+buf<EOL>s = s[:n]<EOL>buf = b'<STR_LIT>'<EOL><DEDENT><DEDENT>return<EOL>
Fetches a next line backward.

        This is used to locate the trailers at the end of a file.