2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

address python2/python3 differences

This commit is contained in:
Mark Andrews
2016-05-25 15:19:25 +10:00
parent d4a9a6c4a9
commit 9c6a57d7c7

View File

@@ -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: