1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-22 14:28:07 +00:00

nem_test_vectors: Handle empty header column

This commit is contained in:
Saleem Rashid 2017-05-22 20:10:07 +01:00 committed by Pavol Rusnak
parent ce25dcc9fc
commit d1f97d07f8
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -32,7 +32,10 @@ def load_header(line)
line = line.dup
abort 'Header is not a comment' unless line.slice!(0) == '#'
line.split(':').each(&:strip!)
header = line.split(':').each(&:strip!)
header.shift if header.first.empty?
header
end
def parse_field_answer(answer)