Fix docstring for URLOpener.retrieve() in regards to opening a local file

This commit is contained in:
Brett Cannon 2003-04-24 02:43:20 +00:00
parent 317ad7a5ee
commit 7d618c731c

View file

@ -196,7 +196,7 @@ class URLopener:
# External interface
def retrieve(self, url, filename=None, reporthook=None, data=None):
"""retrieve(url) returns (filename, None) for a local object
"""retrieve(url) returns (filename, headers) for a local object
or (tempfilename, headers) for a remote object."""
url = unwrap(toBytes(url))
if self.tempcache and url in self.tempcache: