From: Mattias Lundberg Date: Wed, 19 Mar 2014 15:41:34 +0000 (+0100) Subject: Fix for timing, begin_time is not a function. X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F104%2Fhead;p=thirdparty%2Fdnspython.git Fix for timing, begin_time is not a function. --- diff --git a/dns/query.py b/dns/query.py index 27c59d8a..1d3954da 100644 --- a/dns/query.py +++ b/dns/query.py @@ -320,7 +320,7 @@ def tcp(q, where, timeout=None, port=53, af=None, source=None, source_port=0, (l,) = struct.unpack("!H", ldata) wire = _net_read(s, l, expiration) finally: - response_time = time.time() - begin_time() + response_time = time.time() - begin_time s.close() r = dns.message.from_wire(wire, keyring=q.keyring, request_mac=q.mac, one_rr_per_rrset=one_rr_per_rrset)