summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Halley <halley@dnspython.org>2015-03-21 07:53:38 -0700
committerBob Halley <halley@dnspython.org>2015-03-21 07:53:38 -0700
commit0b8ae7fd1107f330f94afc03311f233d51968a66 (patch)
tree7198e3e2b1214b3ff3c476d54992fccb9cd38539
parentcc3b70a71010a2055a33442053ea9666f6bda4d2 (diff)
downloaddnspython-0b8ae7fd1107f330f94afc03311f233d51968a66.tar.gz
zone.to_text() needs to make a StringIO
-rw-r--r--dns/zone.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/dns/zone.py b/dns/zone.py
index ce88510..9193a7d 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()