def read(self, size):
try:<EOL><INDENT>return_val = self.handle.read(size)<EOL>if return_val == '<STR_LIT>':<EOL><INDENT>print()<EOL>print("<STR_LIT>")<EOL>print()<EOL>raise IOError<EOL><DEDENT>return return_val<EOL><DEDENT>except OSError:<EOL><INDENT>print()<EOL>print("<STR_LIT>")<EOL>print()<EOL>raise IOError<EOL><DEDENT>
Read wrapper.

Parameters
----------
size : int
  Number of bytes to read.