summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorSenthil Kumaran <orsenthil@gmail.com>2010-10-14 11:57:35 (GMT)
committerSenthil Kumaran <orsenthil@gmail.com>2010-10-14 11:57:35 (GMT)
commit383c32dd3821828f271c0bf7bcf21f0ba71792e8 (patch)
treeaf0d55d8de4b60bfb1a4ce993a29b7387eb136b8 /Doc
parent6d7be5f86cf9eca0ab6f4c53b834e48f81ed6291 (diff)
downloadcpython-383c32dd3821828f271c0bf7bcf21f0ba71792e8.zip
cpython-383c32dd3821828f271c0bf7bcf21f0ba71792e8.tar.gz
cpython-383c32dd3821828f271c0bf7bcf21f0ba71792e8.tar.bz2
Issue10063 - file:// scheme will stop accessing remote hosts via ftp protocol
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/urllib.request.rst8
1 files changed, 6 insertions, 2 deletions
diff --git a/Doc/library/urllib.request.rst b/Doc/library/urllib.request.rst
index 21c1c2f..5581f25 100644
--- a/Doc/library/urllib.request.rst
+++ b/Doc/library/urllib.request.rst
@@ -1004,8 +1004,12 @@ FileHandler Objects
.. method:: FileHandler.file_open(req)
Open the file locally, if there is no host name, or the host name is
- ``'localhost'``. Change the protocol to ``ftp`` otherwise, and retry opening it
- using :attr:`parent`.
+ ``'localhost'``.
+
+ This method is applicable only for local hostnames. When a remote hostname
+ is given, an :exc:`URLError` is raised.
+
+.. versionchanged:: 3.2
.. _ftp-handler-objects: