From: kimbo Date: Fri, 4 Oct 2019 11:18:51 +0000 (-0600) Subject: added __str__ for GenericOption X-Git-Tag: v2.0.0rc1~348^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df9a1618d0de1cc0161606ec1539f11a90c38807;p=thirdparty%2Fdnspython.git added __str__ for GenericOption --- diff --git a/dns/edns.py b/dns/edns.py index 56a9f929..5d603734 100644 --- a/dns/edns.py +++ b/dns/edns.py @@ -154,6 +154,8 @@ class GenericOption(Option): return 1 return -1 + def __str__(self): + return self.to_text() class ECSOption(Option): """EDNS Client Subnet (ECS, RFC7871)"""