#NEWLINE# def load_rosdep_yaml( self , yaml_contents , origin ) : #NEWLINE# #INDENT# '\n        Utility routine for unmarshalling rosdep data encoded as YAML.\n\n        :param origin: origin of yaml contents (for error messages)\n        :raises: :exc:`yaml.YAMLError`\n        ' #NEWLINE# try : #NEWLINE# #INDENT# return yaml . load ( yaml_contents ) #NEWLINE# #UNINDENT# except yaml . YAMLError as e : #NEWLINE# #INDENT# raise InvalidData ( ( 'Invalid YAML in [%s]: %s' % ( yaml_contents , e ) ) , origin = origin )