Hi have this two funtions in Py2 works fine but it doesn´t works on Py3
def encoding(text, codes): binary = \'\' f = open(\'bytes.bin\', \'wb\')
The fix was simple for me
Use
f = open('bytes.bin', 'w')
instead of
f = open('bytes.bin', 'wb')
In python 3 'w' is what you need, not 'wb'.
'w'
'wb'