mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Fix docstring for URLOpener.retrieve() in regards to opening a local file
This commit is contained in:
parent
317ad7a5ee
commit
7d618c731c
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue