def read(self, size):
return_val = self.handle.read(size)<EOL>if not return_val:<EOL><INDENT>raise IOError<EOL><DEDENT>else: <EOL><INDENT>return return_val<EOL><DEDENT>
Read wrapper.

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