diff options
| author | Bob Halley <halley@nominum.com> | 2012-04-08 14:22:51 +0100 |
|---|---|---|
| committer | Bob Halley <halley@nominum.com> | 2012-04-08 14:22:51 +0100 |
| commit | 7b8e0117a91bab2fa536459e525d309bc445da77 (patch) | |
| tree | f9275a6ef11e539c74de2c5dd8d6f4b2f1fd540e /dns/query.py | |
| parent | a4d93d43c34dc4d956dd4406ce730d5c9977c003 (diff) | |
| download | dnspython-7b8e0117a91bab2fa536459e525d309bc445da77.tar.gz | |
doco fixes
Diffstat (limited to 'dns/query.py')
| -rw-r--r-- | dns/query.py | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/dns/query.py b/dns/query.py index 0e6eb92..2148df0 100644 --- a/dns/query.py +++ b/dns/query.py @@ -46,12 +46,15 @@ def _compute_expiration(timeout): return time.time() + timeout def _poll_for(fd, readable, writable, error, timeout): - """ - @param fd: File descriptor (int). - @param readable: Whether to wait for readability (bool). - @param writable: Whether to wait for writability (bool). - @param expiration: Deadline timeout (expiration time, in seconds (float)). - + """Poll polling backend. + @param fd: File descriptor + @type fd: int + @param readable: Whether to wait for readability + @type readable: bool + @param writable: Whether to wait for writability + @type writable: bool + @param timeout: Deadline timeout (expiration time, in seconds) + @type timeout: float @return True on success, False on timeout """ event_mask = 0 @@ -73,12 +76,15 @@ def _poll_for(fd, readable, writable, error, timeout): return bool(event_list) def _select_for(fd, readable, writable, error, timeout): - """ - @param fd: File descriptor (int). - @param readable: Whether to wait for readability (bool). - @param writable: Whether to wait for writability (bool). - @param expiration: Deadline timeout (expiration time, in seconds (float)). - + """Select polling backend. + @param fd: File descriptor + @type fd: int + @param readable: Whether to wait for readability + @type readable: bool + @param writable: Whether to wait for writability + @type writable: bool + @param timeout: Deadline timeout (expiration time, in seconds) + @type timeout: float @return True on success, False on timeout """ rset, wset, xset = [], [], [] |
