[v9_10] address some python2/3 incompatibilities

This commit is contained in:
Evan Hunt
2016-04-29 10:39:07 -07:00
parent 530e40e7d0
commit 6bfb11b25e

View File

@@ -48,8 +48,7 @@ class dnskey:
self.fromtuple(name, alg, keyid, keyttl)
self._dir = directory or os.path.dirname(key) or '.'
key = os.path.basename(key)
key = os.path.basename(key).decode('ascii')
(name, alg, keyid) = key.split('+')
name = name[1:-1]
alg = int(alg)