def decode_routing_key(cls, encoded_routing_key: str) -> str:
def decode(match: Match) -> str:
return binascii.unhexlify(match.group(1).encode('utf-8')).decode('utf-8')
return re.sub(r'___([a-f0-9]{2}|[a-f0-9]{4}|[a-f0-9]{6}|[a-f0-9]{8})_', decode, encoded_routing_key)
评论列表
文章目录