mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 01:26:39 -04:00
mail/py-pyspf: Add lifetime argument back
- Fix 2920ddff74
- Bump PORTREVISION for package change
PR: 282388
This commit is contained in:
parent
4c6dcb6216
commit
4fbf489f56
2 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
PORTNAME= pyspf
|
PORTNAME= pyspf
|
||||||
PORTVERSION= 2.0.14
|
PORTVERSION= 2.0.14
|
||||||
PORTREVISION= 2
|
PORTREVISION= 3
|
||||||
CATEGORIES= mail python
|
CATEGORIES= mail python
|
||||||
MASTER_SITES= PYPI
|
MASTER_SITES= PYPI
|
||||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
try:
|
try:
|
||||||
# FIXME: how to disable TCP fallback in dnspython if not tcpfallback?
|
# FIXME: how to disable TCP fallback in dnspython if not tcpfallback?
|
||||||
- answers = dns.resolver.query(name, qtype, lifetime=timeout)
|
- answers = dns.resolver.query(name, qtype, lifetime=timeout)
|
||||||
+ answers = dns.resolver.resolve(name, qtype)
|
+ answers = dns.resolver.resolve(name, qtype, lifetime=timeout)
|
||||||
for rdata in answers:
|
for rdata in answers:
|
||||||
if qtype == 'A' or qtype == 'AAAA':
|
if qtype == 'A' or qtype == 'AAAA':
|
||||||
retVal.append(((name, qtype), rdata.address))
|
retVal.append(((name, qtype), rdata.address))
|
||||||
|
|
Loading…
Add table
Reference in a new issue