mirror of https://github.com/python/cpython.git
Fix docstring for URLOpener.retrieve() in regards to opening a local file
This commit is contained in:
parent
317ad7a5ee
commit
7d618c731c
|
@ -196,7 +196,7 @@ def open_unknown_proxy(self, proxy, fullurl, data=None):
|
|||
|
||||
# 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:
|
||||
|
|
Loading…
Reference in New Issue