def unpack_to_nibbles(bindata):
 o = bin_to_nibbles(bindata)
 flags = o[0]
 if (flags & 2):
  o.append(NIBBLE_TERMINATOR)
 if ((flags & 1) == 1):
  o = o[1:]
 else:
  o = o[2:]
 return o

def unpack_to_nibbles ( bindata ) : o = bin_to_nibbles ( bindata ) flags = o [ 0 ] if ( flags & 2 ) : o . append ( NIBBLE_TERMINATOR ) if ( ( flags & 1 ) == 1 ) : o = o [ 1 : ] else : o = o [ 2 : ] return o
unpack packed binary data to nibbles .