=== modified file 'linaro_image_tools/media_create/boards.py'
@@ -1134,6 +1134,9 @@
'r') as info_file:
for line in info_file:
file_data = line.split()
+ if len(file_data) == 0:
+ # Line contains only whitespace
+ continue
if file_data[0][0] == '#':
continue
if file_data[1].startswith('/'):
=== modified file 'linaro_image_tools/media_create/tests/test_media_create.py'
@@ -690,6 +690,8 @@
for line in src_data:
# Write comments, so we test that the parser can read them
f.write('#Yet another comment\n')
+ # Write whitespace, so we test that the parser can handle them
+ f.write(' \n\t\n \t \t \n')
f.write('%s %s %i %#x %s\n' % line)
expected = []
# Define dummy binary files, containing nothing but their own