X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;ds=inline;f=Robots%2Fbkmk_rurllib.py;h=1b3182ea04de146e44fe0ac219599a30517ca34e;hb=8a33ee42d7f8edff076734eba8c1718da8127b22;hp=f71a8d2bb55d22f5f823e44fae765abc800c7e32;hpb=7c74826d0861c0c18d78d030ee96c572dad24961;p=bookmarks_db.git diff --git a/Robots/bkmk_rurllib.py b/Robots/bkmk_rurllib.py index f71a8d2..1b3182e 100644 --- a/Robots/bkmk_rurllib.py +++ b/Robots/bkmk_rurllib.py @@ -11,9 +11,7 @@ __license__ = "GNU GPL" __all__ = ['robot_urllib'] -import os import sys -import time import urllib from Robots.bkmk_robot_base import robot_base, get_error @@ -51,7 +49,7 @@ class MyURLopener(urllib.URLopener): def http_error_default(self, url, fp, errcode, errmsg, headers): if fp: - void = fp.read() + fp.read() fp.close() raise IOError(('http error', errcode, errmsg, headers))