Created
May 20, 2012 16:06
-
-
Save bortzmeyer/2758613 to your computer and use it in GitHub Desktop.
Patch for dnspython edns.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/dns/edns.py b/dns/edns.py | |
index 4d4eaa8..e52b6df 100644 | |
--- a/dns/edns.py | |
+++ b/dns/edns.py | |
@@ -44,13 +44,13 @@ class Option(object): | |
@type current: int | |
@param olen: The length of the wire-format option data | |
@type olen: int | |
- @rtype: dns.ends.Option instance""" | |
+ @rtype: dns.edns.Option instance""" | |
raise NotImplementedError | |
from_wire = classmethod(from_wire) | |
def _cmp(self, other): | |
- """Compare an ENDS option with another option of the same type. | |
+ """Compare an EDNS option with another option of the same type. | |
Return < 0 if self < other, 0 if self == other, and > 0 if self > other. | |
""" | |
raise NotImplementedError | |
@@ -136,7 +136,7 @@ def option_from_wire(otype, wire, current, olen): | |
@type current: int | |
@param olen: The length of the wire-format option data | |
@type olen: int | |
- @rtype: dns.ends.Option instance""" | |
+ @rtype: dns.edns.Option instance""" | |
cls = get_option_class(otype) | |
return cls.from_wire(otype, wire, current, olen) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment