Plug in settings for threading

This commit is contained in:
angelblue05 2018-09-30 19:37:00 -05:00
parent b35cd29bc2
commit f9e26e1c23
1 changed files with 4 additions and 0 deletions

View File

@ -403,3 +403,7 @@ def normalize_string(text):
text = unicodedata.normalize('NFKD', unicode(text, 'utf-8')).encode('ascii', 'ignore')
return text
def split_list(itemlist, size):
# Split up list in pieces of size. Will generate a list of lists
return [itemlist[i:i+size] for i in range(0, len(itemlist), size)]