mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +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
|
# External interface
|
||||||
def retrieve(self, url, filename=None, reporthook=None, data=None):
|
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."""
|
or (tempfilename, headers) for a remote object."""
|
||||||
url = unwrap(toBytes(url))
|
url = unwrap(toBytes(url))
|
||||||
if self.tempcache and url in self.tempcache:
|
if self.tempcache and url in self.tempcache:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue