From f7ac7da0fa8645a29ca5208198c1bac0f8c22419 Mon Sep 17 00:00:00 2001 From: srenfo <14216995+srenfo@users.noreply.github.com> Date: Wed, 4 Nov 2020 20:56:47 +0100 Subject: [PATCH] Cleanup: Remove unused helpers --- conpot/helpers.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/conpot/helpers.py b/conpot/helpers.py index 39ec3529..57428735 100644 --- a/conpot/helpers.py +++ b/conpot/helpers.py @@ -32,26 +32,11 @@ def chr_py3(x): return bytearray((x,)) -# covert a number to an ascii byte string -def number_to_bytes(x): - return x if isinstance(x, bytes) else bytes(str(int(x)), encoding="ascii") - - # convert a string to an ascii byte string def str_to_bytes(x): return x if isinstance(x, bytes) else str(x).encode("ascii") -# pack a short int -def pack_short_int(x): - return x if isinstance(x, bytes) else x.to_bytes(2, byteorder="big") - - -# unpack a short int -def unpack_short_int(x): - return int.from_bytes(x, byteorder="big") - - months_map = { 1: "Jan", 2: "Feb",