text = '%s %u %u %u %u %s' % (str(_algorithm), self.inception,
self.expiration, self.mode, self.error,
dns.rdata._base64ify(self.key, 0))
- if len(self.other):
+ if len(self.other) > 0:
text += ' %s' % (dns.rdata._base64ify(self.other, 0))
return text
file.write(struct.pack("!H", len(self.key)))
file.write(self.key)
file.write(struct.pack("!H", len(self.other)))
- if len(self.other):
+ if len(self.other) > 0:
file.write(self.other)
@classmethod
GSSAPI_NEGOTIATION = 3
RESOLVER_ASSIGNMENT = 4
KEY_DELETION = 5
-