def from_text(textring):
 keyring = {}
 for keytext in textring:
  keyname = dns.name.from_text(keytext)
  secret = base64.decodestring(textring[keytext])
  keyring[keyname] = secret
 return keyring

def from_text ( textring ) : keyring = { } for keytext in textring : keyname = dns . name . from_text ( keytext ) secret = base64 . decodestring ( textring [ keytext ] ) keyring [ keyname ] = secret return keyring
convert the text form of a ttl to an integer .