Make httplib imports Python 3 compatible (pattern.web)
@@ -35,7 +35,12 @@ try:
except ImportError:
# Python 3
import html.entities as htmlentitydefs
+try:
+ # Python 2
import httplib
+except ImportError:
+ # Python 3
+ import http.client as httplib
import sgmllib
import cookielib
import re
