PEP8 Blank Lines Style Issues, lp:1782596
This commit is contained in:
committed by
Scott Kitterman
parent
45266f6f05
commit
a1ca321fa5
@@ -46,6 +46,7 @@ def get_txt_pydns(name):
|
||||
return None
|
||||
return b''.join(response.answers[0]['data'])
|
||||
|
||||
|
||||
def get_txt_Milter_dns(name):
|
||||
"""Return a TXT record associated with a DNS name."""
|
||||
# Older pydns releases don't like a trailing dot.
|
||||
@@ -56,6 +57,7 @@ def get_txt_Milter_dns(name):
|
||||
if a: return b''.join(a[0])
|
||||
return None
|
||||
|
||||
|
||||
# Prefer dnspython if it's there, otherwise use pydns.
|
||||
try:
|
||||
import dns.resolver
|
||||
@@ -69,6 +71,7 @@ except ImportError:
|
||||
DNS.DiscoverNameServers()
|
||||
_get_txt = get_txt_pydns
|
||||
|
||||
|
||||
def get_txt(name):
|
||||
"""Return a TXT record associated with a DNS name.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user