
­­­­­­­­­­­­­­­­­­
<!DOCTYPE html>
<html>
3
>\                 @   s,   d dl Z d dlZdd Zdd Zdd ZdS )    Nc             C   s0   | j   tjjd|  tjj  tjd d S )Nz
%s
   )Z
print_helpsysstderrwriteflushexit)parsermsg r
   !/usr/lib/python3.6/communicate.pyusage   s    
r   c             C   s6   yt ttjtj| d S  tk
r0   | gS X d S )Ntypes)listnextsepolicyinfoZ	ATTRIBUTEStopIteration)Z	attributer
   r
   r   expand_attribute"   s    r   c                sv   t jt jgt j| t j|t j i}|s<td| dj f g }x0tdd t	 fdd|D ]}|t
| }q^W |S )Nz*The %s type is not allowed to %s any types,c             S   s
   | t j S )N)r   ZTARGET)yr
   r
   r   <lambda>/   s    zget_types.<locals>.<lambda>c                s   t  j| tj S )N)setissubsetr   PERMS)x)permr
   r   r   /   s    )r   searchZALLOWZSOURCEZCLASSr   
ValueErrorjoinmapfilterr   )srcZtclassr   ZallowsZtlistlr
   )r   r   	get_types)   s    ""r#   )r   r   r   r   r#   r
   r
   r
   r   <module>   s   