summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorFacundo Batista <facundobatista@gmail.com>2007-03-26 20:18:31 (GMT)
committerFacundo Batista <facundobatista@gmail.com>2007-03-26 20:18:31 (GMT)
commit51b7abc5199cb87d9e17fbbb276a6695888d12f1 (patch)
tree1a017310e9589b80e3f9bf4db8a7ec045937787c /Doc
parent85fd7ac93dc02704cea60ad80166e0c744a0a750 (diff)
downloadcpython-51b7abc5199cb87d9e17fbbb276a6695888d12f1.zip
cpython-51b7abc5199cb87d9e17fbbb276a6695888d12f1.tar.gz
cpython-51b7abc5199cb87d9e17fbbb276a6695888d12f1.tar.bz2
Added an optional timeout to FTP class. Also I started a test_ftplib.py
file to test the ftp lib (right now I included a basic test, the timeout one, and nothing else).
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libftplib.tex5
1 files changed, 4 insertions, 1 deletions
diff --git a/Doc/lib/libftplib.tex b/Doc/lib/libftplib.tex
index 58d16cb..bf87481 100644
--- a/Doc/lib/libftplib.tex
+++ b/Doc/lib/libftplib.tex
@@ -37,12 +37,15 @@ dr-xr-srwt 105 ftp-usr pdmaint 1536 Mar 21 14:32 ..
The module defines the following items:
\begin{classdesc}{FTP}{\optional{host\optional{, user\optional{,
- passwd\optional{, acct}}}}}
+ passwd\optional{, acct\optional{, timeout}}}}}}
Return a new instance of the \class{FTP} class. When
\var{host} is given, the method call \code{connect(\var{host})} is
made. When \var{user} is given, additionally the method call
\code{login(\var{user}, \var{passwd}, \var{acct})} is made (where
\var{passwd} and \var{acct} default to the empty string when not given).
+The optional \var{timeout} parameter specifies a timeout in seconds for the
+connection attempt (if is not specified, or passed as None, the global
+default timeout setting will be used).
\end{classdesc}
\begin{datadesc}{all_errors}