From 693cf63b734b22f3527efb4a8e08aadc53cecd8d Mon Sep 17 00:00:00 2001 From: Youngjoon Lee <5462944+youngjoon-lee@users.noreply.github.com> Date: Thu, 11 Jul 2024 17:23:16 +0900 Subject: [PATCH] revert: use slice because the type of enum values are bytes --- mixnet/nomssip.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mixnet/nomssip.py b/mixnet/nomssip.py index 2890f1b..5e76523 100644 --- a/mixnet/nomssip.py +++ b/mixnet/nomssip.py @@ -116,4 +116,4 @@ class Nomssip: """ if len(data) < 1: raise ValueError("Invalid message format") - return (Nomssip.PacketType(data[0]), data[1:]) + return (Nomssip.PacketType(data[:1]), data[1:])