mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-25 14:20:22 -07:00
Cleanup more pyflakes warnings (2 real problems)
This commit is contained in:
parent
1fa975d81a
commit
7aa9f6754a
7 changed files with 13 additions and 22 deletions
|
@ -24,8 +24,9 @@ import socket
|
|||
try:
|
||||
import dns.resolver
|
||||
import dns.reversename
|
||||
from dns.rdatatype import *
|
||||
from dns.exception import DNSException
|
||||
from dns.rdatatype import (A, AAAA, CNAME, DLV, DNAME, DNSKEY, DS, HINFO, LOC,
|
||||
MX, NAPTR, NS, NSEC3PARAM, PTR, RP, SOA, SPF, SRV, SSHFP, TLSA, TXT)
|
||||
import dns.exception
|
||||
HAVE_DNS = True
|
||||
except ImportError:
|
||||
HAVE_DNS = False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue