Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make drive.py python3 compatible #210

Open
pirofti opened this issue Mar 5, 2020 · 0 comments
Open

Make drive.py python3 compatible #210

pirofti opened this issue Mar 5, 2020 · 0 comments

Comments

@pirofti
Copy link

pirofti commented Mar 5, 2020

httplib is no longer available in python3 and has been renamed as http.client.

Here is a patch to fix that in GDriveFS.

$ cat patches/patch-lib_gdrivefs_drive_py 
$OpenBSD$

Index: lib/gdrivefs/drive.py
--- lib/gdrivefs/drive.py.orig
+++ lib/gdrivefs/drive.py
@@ -4,7 +4,7 @@ import dateutil.parser
 import random
 import json
 import time
-import httplib
+import http.client as httplib
 import ssl
 import tempfile
 import pprint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant