Merge branch 'master' of https://github.com/microsoft/ai4eutils
This commit is contained in:
Коммит
c8692a2ed4
|
@ -57,6 +57,7 @@ def read_prefix_list(prefix_list_file):
|
|||
with open(prefix_list_file,'r') as f:
|
||||
prefixes = f.readlines()
|
||||
prefixes = [s.strip() for s in prefixes]
|
||||
prefixes = [s for s in prefixes if len(s) > 0]
|
||||
print('Read {} prefixes from {}'.format(len(prefixes),
|
||||
prefix_list_file))
|
||||
return prefixes
|
||||
|
|
Загрузка…
Ссылка в новой задаче