File: //usr/lib/python3.6/site-packages/serial/urlhandler/__pycache__/protocol_spy.cpython-36.pyc
3
M�]W@# � @ s� d dl Z d dlZd dlZyd dlZW n ek
rB d dljZY nX dd� Zdd� ZG dd� de �Z
G dd � d e �ZG d
d� dej�Ze
dkr�ed�Zd
e_ee� dS )� Nc c s� d}xrt j| �D ]d}djt|��d| ko2dk n rB|jd�ndfV |d7 }|dkrbdV q|dkrdV d}qW |dkr�x(|dk r�|d7 }|dkr�dV dV q�W dV dS )z� yield tuples of hex and ASCII display in multiples of 16. Includes a
space after 8 bytes and (None, None) after 16 bytes and at the end.
r z{:02X} � � �ascii�.� � � � � N� )r r )NN)r r )r r )NN)�serialZ iterbytes�format�ord�decode)�data�n�b� r �"/usr/lib/python3.6/protocol_spy.py�sixteen"