def read(self, stream):
"""
Read the given stream and returns it as a dict.
:param stream: The stream to read the configuration from.
:return IgnoreCaseDict: The configuration read from the stream.
"""
if stream is None:
raise ValueError('stream cannot be None')
return yaml.load(stream, Loader=self._get_loader())
评论列表
文章目录