my script includes this line:
encoded = "Basic " + s.encode("base64").rstrip()
But gives me back the error:
LookupError: 'base64' is not a text encoding; use codecs.encode() to handle arbitrary codecs
This line seemed to work fine in python 2 but since switching to 3 I get the error
base64module.