3 ¢báW] ã @ s6 d Z ddlZddlZddlmZ G dd„ dejƒZdS )zDNS name dictionaryé Né )Úxrangec @ sb e Zd ZdZdddgZdd„ Zdd„ Zd d „ Zdd„ Zd d„ Z dd„ Z dd„ Zdd„ Zdd„ Z dS )ÚNameDicta A dictionary whose keys are dns.name.Name objects. @ivar max_depth: the maximum depth of the keys that have ever been added to the dictionary. @type max_depth: int @ivar max_depth_items: the number of items of maximum depth @type max_depth_items: int Ú max_depthÚmax_depth_itemsZ__storec O s( t ƒ | _d| _d| _| jt ||Žƒ d S )Nr )ÚdictÚ_NameDict__storer r Úupdate)ÚselfÚargsÚkwargs© r ú/usr/lib/python3.6/namedict.pyÚ__init__- s zNameDict.__init__c C s> t |ƒ| jkr| jd | _nt |ƒ| jkr:t |ƒ| _d| _d S )Nr )Úlenr r )r Úkeyr r r Z__update_max_depth3 s zNameDict.__update_max_depthc C s | j | S )N)r )r r r r r Ú__getitem__: s zNameDict.__getitem__c C s. t |tjjƒstdƒ‚|| j|<