From: Bob Halley Date: Sat, 7 Apr 2012 20:12:23 +0000 (+0100) Subject: BytesIO not StringIO X-Git-Tag: v1.10.0-py3~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8124127fe9f80339f6f6bcb2fe6fd751b307e3d9;p=thirdparty%2Fdnspython.git BytesIO not StringIO --- diff --git a/dns/dnssec.py b/dns/dnssec.py index 61a06d97..61f2410a 100644 --- a/dns/dnssec.py +++ b/dns/dnssec.py @@ -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()