3
g` @ s d dl mZ d dl mZ d dl mZ d dlZd dlmZ d dlm Z m
Z
d dlmZ d dlZ
d dlZ
d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dlZd dlZejdZejjZejjZejjZ ejj!Z"eeB e B e"B Z#d d
Z$dd Z%d
d Z&dd Z'd*ddZ(G dd de)Z*G dd de)Z+G dd de)Z,G dd de,Z-G dd de,Z.G dd de,Z/G d d! d!e,Z0G d"d# d#e)Z1G d$d% d%e)Z2G d&d' d'e)Z3G d(d) d)e)Z4dS )+ )absolute_import)print_function)unicode_literalsN)
CompsError)_ucd)reducednfc C s" | j | j| jf}ttjtt|S )N)
categoriesgroupsenvironmentsr operator__add__maplen)compscollections r /usr/lib/python3.6/comps.py_internal_comps_length6 s r c C s | d krd S t jj| S )N)r utilfirst)seqr r r _first_if_iterable; s r c s t jj fdd|D }|r&|S |r>tjtj j}ntjtj tjdj}t }x`|D ]X}||j
r||j| qb|jdk r||jr|j| qb|j
dk rb||j
rb|j| qbW |S )z;Return items from sqn matching either exactly or glob-wise.c s$ h | ]}|j ks|j kr|qS r )nameid).0g)patternr r