google / gmail-oauth2-tools

Tools and sample code for authenticating to Gmail with OAuth2
Apache License 2.0
405 stars 211 forks source link

Update oauth2.py #59

Closed greatlordsecond closed 11 months ago

greatlordsecond commented 1 year ago

Made it compatible with Python3

u011 commented 1 year ago

This one fails for me, but https://github.com/google/gmail-oauth2-tools/pull/25/commits works

in --generate_oauth2_string line 58, in b64encode encoded = binascii.b2a_base64(s, newline=False) TypeError: a bytes-like object is required, not 'str'

junyer commented 11 months ago

Handled in commit 944cffd66df38863eb0252a8096961335e418e70.