mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
ftplib: update connect() docstring by mentioning 'timeout' argument
This commit is contained in:
parent
34373b2252
commit
11a9bd62b1
1 changed files with 1 additions and 0 deletions
|
@ -134,6 +134,7 @@ class FTP:
|
||||||
'''Connect to host. Arguments are:
|
'''Connect to host. Arguments are:
|
||||||
- host: hostname to connect to (string, default previous host)
|
- host: hostname to connect to (string, default previous host)
|
||||||
- port: port to connect to (integer, default previous port)
|
- port: port to connect to (integer, default previous port)
|
||||||
|
- timeout: the timeout to set against the ftp socket(s)
|
||||||
- source_address: a 2-tuple (host, port) for the socket to bind
|
- source_address: a 2-tuple (host, port) for the socket to bind
|
||||||
to as its source address before connecting.
|
to as its source address before connecting.
|
||||||
'''
|
'''
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue