else:
raise IOError("Too many redirects")
except:
- etype, emsg, tb = sys.exc_info()
+ etype, emsg, _ = sys.exc_info()
self.log(" no icon : %s %s"
% (etype, emsg))
- etype = emsg = tb = None
+ etype = emsg = _ = None
icons[icon_url] = None
else:
content_type = icon_headers["Content-Type"]
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))
dict["lastModified"] = convert_date_to_json(b.last_modified)
dict["title"] = b.name.decode('utf-8')
dict["type"] = "text/x-moz-place"
- dict["uri"] = uri = b.href
+ dict["uri"] = b.href
self.folder_stack[-1].append(dict)
def ruler(self, r, level):
sys.stdout.flush()
if transl:
- new_ext = str(transl)
transl_d = {}
from m_lib.flad import fladm