本文整理汇总了Python中taiga.base.utils.text.split_in_lines函数的典型用法代码示例。如果您正苦于以下问题:Python split_in_lines函数的具体用法?Python split_in_lines怎么用?Python split_in_lines使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了split_in_lines函数的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: get_userstories_from_bulk
def get_userstories_from_bulk(bulk_data, **additional_fields):
"""Convert `bulk_data` into a list of user stories.
:param bulk_data: List of user stories in bulk format.
:param additional_fields: Additional fields when instantiating each user story.
:return: List of `UserStory` instances.
"""
return [models.UserStory(subject=line, **additional_fields) for line in text.split_in_lines(bulk_data)]