]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
BytesIO not StringIO
authorBob Halley <halley@nominum.com>
Sat, 7 Apr 2012 20:12:23 +0000 (21:12 +0100)
committerBob Halley <halley@nominum.com>
Sat, 7 Apr 2012 20:12:23 +0000 (21:12 +0100)
dns/dnssec.py

index 61a06d970be937cd5ef7287f0b43b77318c03457..61f2410a32364669af880320c0430470160cdafc 100644 (file)
@@ -89,7 +89,7 @@ def algorithm_to_text(value):
     return text
 
 def _to_rdata(record, origin):
-    s = io.StringIO()
+    s = io.BytesIO()
     record.to_wire(s, origin=origin)
     return s.getvalue()