#NEWLINE# def load_file( filename , maxbytes = _unspecified ) : #NEWLINE# #INDENT# '\n    Read *maxbytes* of data from *filename* and seed the PRNG with it.\n\n    Read the whole file if *maxbytes* is not specified or negative.\n\n    :param filename: The file to read data from (``bytes`` or ``unicode``).\n    :param maxbytes: (optional) The number of bytes to read.    Default is to\n        read the entire file.\n\n    :return: The number of bytes read\n    ' #NEWLINE# filename = _path_string ( filename ) #NEWLINE# if ( maxbytes is _unspecified ) : #NEWLINE# #INDENT# maxbytes = ( - 1 ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( not isinstance ( maxbytes , int ) ) : #NEWLINE# #INDENT# raise TypeError ( 'maxbytes must be an integer' ) #NEWLINE# #UNINDENT# #UNINDENT# return _lib . RAND_load_file ( filename , maxbytes )