(self)
return self.peek(1) in (b'', b'\x1a')
Check for end of file EOF.
Check for end of file EOF.
Check for end of file EOF .
def eof(self):
        """Check for end of file EOF."""
        # for EOF(i)
        if self.mode in (b'A', b'O'):
            return False
        return self.peek(1) in (b'', b'\x1a')
def eof ( self ) : # for EOF(i) if self . mode in ( b'A' , b'O' ) : return False return self . peek ( 1 ) in ( b'' , b'\x1a' )