示例#1
0
 def comma_choice_list(cls, string):
     '''Convert a comma separated string to `CommaChoiceListArgs`.'''
     items = string.split(',')
     items = CommaChoiceListArgs([item.strip() for item in items])
     return items
示例#2
0
 def comma_list(cls, string):
     '''Convert a comma separated string to list.'''
     items = string.split(',')
     items = list([item.strip() for item in items])
     return items
示例#3
0
 def comma_list(cls, string):
     '''Convert a comma separated string to list.'''
     items = string.split(',')
     items = list([item.strip() for item in items])
     return items
示例#4
0
 def comma_choice_list(cls, string):
     '''Convert a comma separated string to `CommaChoiceListArgs`.'''
     items = string.split(',')
     items = CommaChoiceListArgs([item.strip() for item in items])
     return items
示例#5
0
文件: options.py 项目: charygao/wpull
 def comma_list(cls, string):
     """Convert a comma separated string to list."""
     items = string.split(",")
     items = list([item.strip() for item in items])
     return items