Make it clear why the httplib import is guarded by a try except and has a fallback

This commit is contained in:
Jaap Roes 2017-03-16 15:57:28 +01:00
parent b8bfbe0c9a
commit defaf45e9a

View file

@ -1,7 +1,7 @@
try:
import httplib
import httplib # Python 2
except ImportError:
import http.client as httplib
import http.client as httplib # Python 3
import json
import uuid