From: Bob Halley Date: Sat, 21 Mar 2015 14:53:38 +0000 (-0700) Subject: zone.to_text() needs to make a StringIO X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b8ae7fd1107f330f94afc03311f233d51968a66;p=thirdparty%2Fdnspython.git zone.to_text() needs to make a StringIO --- diff --git a/dns/zone.py b/dns/zone.py index ce88510b..9193a7dd 100644 --- a/dns/zone.py +++ b/dns/zone.py @@ -503,7 +503,7 @@ class Zone(object): LF on POSIX, CRLF on Windows, CR on Macintosh). @type nl: string or None """ - temp_buffer = io.BytesIO() + temp_buffer = io.StringIO() self.to_file(temp_buffer, sorted, relativize, nl) return_value = temp_buffer.getvalue() temp_buffer.close()