summaryrefslogtreecommitdiff
path: root/dns/query.py
diff options
context:
space:
mode:
authorBob Halley <halley@nominum.com>2012-04-08 14:22:51 +0100
committerBob Halley <halley@nominum.com>2012-04-08 14:22:51 +0100
commit7b8e0117a91bab2fa536459e525d309bc445da77 (patch)
treef9275a6ef11e539c74de2c5dd8d6f4b2f1fd540e /dns/query.py
parenta4d93d43c34dc4d956dd4406ce730d5c9977c003 (diff)
downloaddnspython-7b8e0117a91bab2fa536459e525d309bc445da77.tar.gz
doco fixes
Diffstat (limited to 'dns/query.py')
-rw-r--r--dns/query.py30
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 = [], [], []