urllib.addinfourl

class urllib.addinfourl(fp, headers, url, code=None)[source]

class to add info() and geturl() methods to an open file.

Methods

__init__(fp, headers, url[, code])
__repr__()
close()
getcode()
geturl()
info()