summaryrefslogtreecommitdiff
path: root/dns
diff options
context:
space:
mode:
authorBob Halley <halley@dnspython.org>2020-06-12 08:06:46 -0700
committerBob Halley <halley@dnspython.org>2020-06-12 08:06:46 -0700
commit54b908b1dc23712867d14d6dc388100c374b7bf8 (patch)
tree2735cf3ccdd6ac8351f35e1fee5c9698200e8931 /dns
parentfa1d4938a8296b4ae88f7bbc5dfa67377995b9e2 (diff)
downloaddnspython-54b908b1dc23712867d14d6dc388100c374b7bf8.tar.gz
Fix bugs found by flake8.
Diffstat (limited to 'dns')
-rw-r--r--dns/edns.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/dns/edns.py b/dns/edns.py
index 2582213..d3df6f9 100644
--- a/dns/edns.py
+++ b/dns/edns.py
@@ -150,7 +150,7 @@ class GenericOption(Option):
if file:
file.write(self.data)
else:
- return data
+ return self.data
def to_text(self):
return "Generic %d" % self.otype
@@ -183,7 +183,7 @@ class ECSOption(Option):
must be 0 in queries, and should be set in responses.
"""
- super().__init__(ECS)
+ super().__init__(OptionType.ECS)
af = dns.inet.af_for_address(address)
if af == dns.inet.AF_INET6:
@@ -309,7 +309,7 @@ class ECSOption(Option):
return self.to_text()
_type_to_class = {
- ECS: ECSOption
+ OptionType.ECS: ECSOption
}
def get_option_class(otype):