Another day another runtime error... At least for me anyways
Anyways, when I have a string encoded (for example: "test".encode()), it comes out to be: b'test'
The thing is, is that this bytes object is being sent in a packet, which somehow gets that prefix b parsed into the text itself.
So, this means that in the packet data, it is being sent as "btest" (I examined it in wireshark tcp stream) when I REALLY need it to just be sent as "test" without this b before it.
I cannot simply use .lstrip("b"), for its not a string object, nor can I simply .decode() and then use .encode() again as that would just put it back to "btest" in the packet data.
I somehow need to perform some function to manipulate the bytes object to remove this "b" so that it can be read correctly by the server im sending it to.
I'm at an extreme loss here....
EDIT: Is it possible there's something else that placed this "b" into the byte object instead of .encode() itself?
EDIT 2: I fixed it
after THOROUGHLY tracing it lol