예제 #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