__license__ = "GNU GPL"
import sys
-import httplib
from bkmk_objects import Bookmark
from Writers.bkmk_wflad import strftime
-HTTP = httplib.HTTP
+try:
+ import httplib
+except ImportError:
+ pass
+else:
+ HTTP = httplib.HTTP
+ class MyHTTP(HTTP):
+ def _setup(self, conn):
+ HTTP._setup(self, conn)
+ self.set_debuglevel(1)
-class MyHTTP(HTTP):
- def _setup(self, conn):
- HTTP._setup(self, conn)
- self.set_debuglevel(1)
-
-
-httplib.HTTP = MyHTTP
+ httplib.HTTP = MyHTTP
def run():