]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
added ecs __str__ function
authorkimballo <kimballleavitt@gmail.com>
Thu, 3 Oct 2019 19:04:28 +0000 (13:04 -0600)
committerkimballo <kimballleavitt@gmail.com>
Thu, 3 Oct 2019 19:04:28 +0000 (13:04 -0600)
dns/edns.py

index 57dd256a44a7aee8b65b526b2c1110a2ad6a5846..56a9f9298f0e9ed2bd3fced565e13015e49d763b 100644 (file)
@@ -234,6 +234,9 @@ class ECSOption(Option):
             return 1
         return -1
 
+    def __str__(self):
+        return self.to_text()
+
 _type_to_class = {
         ECS: ECSOption
 }