def generate_headers(self):
        return {b"Authorization": b"Basic " + encodebytes(
                ("%s:%s" %(self.username, self.password))
                .encode('utf8')).strip(b'\n')
                }
dataset/ETHPy150Open sixohsix/twitter/twitter/auth.py/UserPassAuth.generate_headers/original