The following line is from a python script for a serial bootloader. The file being read is an .elf
file.
It seems like the line is converting the file to a binary array or something similar, but I'm confused about the data = data = ...
part.
data = data = [ord(x) for x in open(options.file, 'rb').read()]
Can someone shed some light on how this works?