summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMattias Lundberg <lundberg.mattias@gmail.com>2014-03-19 16:41:34 +0100
committerPetr Viktorin <pviktori@redhat.com>2015-05-27 13:13:00 +0200
commit26f6a8c6f7fdd48a31057d03ae463c04f18053d7 (patch)
treecc28a3e0e02aeefde21e30d8fb324a3f034c48d4
parent65c9a66eaa34d84d5f334c19eca317cff2f93558 (diff)
downloaddnspython-26f6a8c6f7fdd48a31057d03ae463c04f18053d7.tar.gz
Fix for timing, begin_time is not a function.
-rw-r--r--dns/query.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/dns/query.py b/dns/query.py
index 27c59d8..1d3954d 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)