diff options
| author | Bob Halley <halley@dnspython.org> | 2015-03-21 07:53:38 -0700 |
|---|---|---|
| committer | Bob Halley <halley@dnspython.org> | 2015-03-21 07:53:38 -0700 |
| commit | 0b8ae7fd1107f330f94afc03311f233d51968a66 (patch) | |
| tree | 7198e3e2b1214b3ff3c476d54992fccb9cd38539 | |
| parent | cc3b70a71010a2055a33442053ea9666f6bda4d2 (diff) | |
| download | dnspython-0b8ae7fd1107f330f94afc03311f233d51968a66.tar.gz | |
zone.to_text() needs to make a StringIO
| -rw-r--r-- | dns/zone.py | 2 |
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() |
