]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
zone.to_text() needs to make a StringIO
authorBob Halley <halley@dnspython.org>
Sat, 21 Mar 2015 14:53:38 +0000 (07:53 -0700)
committerBob Halley <halley@dnspython.org>
Sat, 21 Mar 2015 14:53:38 +0000 (07:53 -0700)
dns/zone.py

index ce88510bd3400fafbc7cc3cdb6b1ae87a0d7f925..9193a7dd7053d03282c68a099d1961db1f9d2a04 100644 (file)
@@ -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()