
    Pi                    P    d Z ddlmZ ddlmZmZ ddgZ eh d          ZddZ	dS )zgzip/gunzip handler for Dippy.

gzip compresses files, gunzip decompresses them.
By default both modify files in-place (unsafe).
Safe when using stdout, list, or test modes.
    )annotations)ClassificationHandlerContextgzipgunzip>	   -c-l-t--help--list--test--stdout	--version--to-stdoutctxr   returnr   c                j   | j         }|st          dd          S |d         }|dd         D ]v}|                    d          rC|                    d          s.|dd         D ]#}d| t          v rt          d	|          c c S $|t          v rt          d	|          c S wt          d|          S )
zClassify gzip/gunzip command.askr   )descriptionr      N-z--allow)tokensr   
startswith
SAFE_FLAGS)r   r   cmdtokenchars        //root/projects/gits/Dippy/src/dippy/cli/gzip.pyclassifyr       s    ZF 9e8888
)C < <C   	D)9)9$)?)? 	Dabb	 D Dt::++)'sCCCCCCCC ,J!'s;;;;;; %S1111    N)r   r   r   r   )
__doc__
__future__r   	dippy.clir   r   COMMANDS	frozensetr   r     r!   r   <module>r(      s     # " " " " " 4 4 4 4 4 4 4 4H Y
 
 
 
2 2 2 2 2 2r!   