def encode(self, data, errors='strict'):
        return serial.to_bytes([int(h, 16) for h in data.split()])
This method has the same purpose as the one in XMLFeedSpider
dataset/ETHPy150Open pyserial/pyserial/serial/tools/hexlify_codec.py/Codec.encode--crossover with--dataset/ETHPy150Open wcong/ants/ants/contrib/spiders/feed.py/CSVFeedSpider.adapt_response