U
    
W[                     @   s   d Z ddlmZ dd ZdS )zc
Parsing for the moduli file, which contains Diffie-Hellman prime groups.

Maintainer: Paul Swartz
    )longc              	   C   s   t | }| }W 5 Q R X i }|D ]t}| }|r$|d dkrBq$| \}}}}}	}
}t|	d }	t|
}
t|d}|	|krg ||	< ||	 |
|f q$|S )Nr   #      )open	readlinesstripsplitintr   append)filenameflinesZprimeslZtimtypZtstZtrisizegenmod r   E/usr/lib/python3/dist-packages/twisted/conch/openssh_compat/primes.pyparseModuliFile   s    

r   N)__doc__Ztwisted.python.compatr   r   r   r   r   r   <module>   s   