From: kimballo Date: Thu, 3 Oct 2019 19:04:28 +0000 (-0600) Subject: added ecs __str__ function X-Git-Tag: v2.0.0rc1~348^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=684cdb9d39aa7651dca586c1b949c1e0aaa7b818;p=thirdparty%2Fdnspython.git added ecs __str__ function --- diff --git a/dns/edns.py b/dns/edns.py index 57dd256a..56a9f929 100644 --- a/dns/edns.py +++ b/dns/edns.py @@ -234,6 +234,9 @@ class ECSOption(Option): return 1 return -1 + def __str__(self): + return self.to_text() + _type_to_class = { ECS: ECSOption }