From 8124127fe9f80339f6f6bcb2fe6fd751b307e3d9 Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Sat, 7 Apr 2012 21:12:23 +0100 Subject: [PATCH] BytesIO not StringIO --- dns/dnssec.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.47.3