def get_pkg_data_contents(data_name, package=None, encoding=None, cache=True):
 with get_pkg_data_fileobj(data_name, package=package, encoding=encoding, cache=cache) as fd:
  contents = fd.read()
 return contents

def get_pkg_data_contents ( data_name , package = None , encoding = None , cache = True ) : with get_pkg_data_fileobj ( data_name , package = package , encoding = encoding , cache = cache ) as fd : contents = fd . read ( ) return contents
retrieves a data file from the standard locations and returns its contents as a bytes object .