parameters: (textring)
return_statement: return keyring
docstring: Convert a dictionary containing (textual DNS name, base64 secret) pairs
      into a binary keyring which has (dns.name.Name, binary secret) pairs.
      @rtype: dict
docstring_summary: Convert a dictionary containing (textual DNS name, base64 secret) pairs
      into a binary keyring which has (dns.name.Name, binary secret) pairs.
docstring_tokens: Convert a dictionary containing ( textual DNS name base64 secret ) pairs into a binary keyring which has ( dns . name . Name binary secret ) pairs .
function: def from_text(textring):
      """Convert a dictionary containing (textual DNS name, base64 secret) pairs
      into a binary keyring which has (dns.name.Name, binary secret) pairs.
      @rtype: dict"""
      
      keyring = {}
      for keytext in textring:
          keyname = dns.name.from_text(keytext)
          secret = base64.decodestring(textring[keytext])
          keyring[keyname] = secret
      return keyring
function_tokens: 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