Make it clear why the httplib import is guarded by a try except and has a fallback
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
try:
|
try:
|
||||||
import httplib
|
import httplib # Python 2
|
||||||
except ImportError:
|
except ImportError:
|
||||||
import http.client as httplib
|
import http.client as httplib # Python 3
|
||||||
|
|
||||||
import json
|
import json
|
||||||
import uuid
|
import uuid
|
||||||
|
|||||||
Reference in New Issue
Block a user