google / gmail-oauth2-tools

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

Python3 version? #57

Closed lrosenman closed 1 year ago

lrosenman commented 1 year ago

Python2 is long deprecated, how can we use this script with Python3?

for starters:

✖1 ❯ oauth2 --generate_oauth2_token
  File "/Users/rosenmanl/bin/oauth2", line 297
    print 'Missing options: %s' % ' '.join(missing)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
greatlordsecond commented 1 year ago

https://github.com/google/gmail-oauth2-tools/compare/master...greatlordsecond:gmail-oauth2-tools:patch-1

greatlordsecond commented 1 year ago

Please check the above mentioned patch added compatibility for python3

junyer commented 1 year ago

Fixed in commit 944cffd66df38863eb0252a8096961335e418e70.