#NEWLINE# def __init__( self , default_key = None ) : #NEWLINE# #INDENT# '\n\n            Create a new key ring to hold public and private keys mapped from an URI space.\n            ' #NEWLINE# assert ( ( default_key is None ) or isinstance ( default_key , Key ) or type ( ( self == six . text_type ) ) ) #NEWLINE# self . _uri_to_key = StringTrie ( ) #NEWLINE# if ( type ( default_key ) == six . text_type ) : #NEWLINE# #INDENT# default_key = Key ( originator_priv = default_key , responder_priv = default_key ) #NEWLINE# #UNINDENT# self . _default_key = default_key