Commit 9c6a57d7 authored by Mark Andrews's avatar Mark Andrews
Browse files

address python2/python3 differences

parent d4a9a6c4
......@@ -230,7 +230,7 @@ class dnskey:
raise Exception('unable to generate key: ' + stderr)
try:
keystr = stdout.splitlines()[0]
keystr = stdout.splitlines()[0].decode('ascii')
newkey = dnskey(keystr, self._dir, self.ttl)
return newkey
except:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment