o
    2h                     @   sp   d dl mZ d dlZd dlZd dlZddlmZ ddlmZ dddZ	d	d
 Z
edkr6e
ejdd  dS dS )    )print_functionN   )	roundtrip)dumpFc                 C   s   t j| r"t|  tdt|   |rt|  nt|  t  d S t j| rAt | D ]}|	dr>t
t j| || q-d S td|  tjd d S )N=z.pyz/WARNING: skipping '%s', not a file or directory)file)ospathisfileprintlenr   r   isdirlistdirendswithroundtrip_recursivejoinsysstderr)target	dump_treeitem r   N/var/www/html/chatgem/venv/lib/python3.10/site-packages/astunparse/__main__.pyr   	   s"   



r   c                 C   sT   t jdd}|jdddd |jdtdd	 || }|jD ]	}t||jd
 qd S )N
astunparse)progr   +z4Files or directories to show roundtripped source for)nargshelpz--dumpz/Show a pretty-printed AST instead of the source)typer   )r   )argparseArgumentParseradd_argumentbool
parse_argsr   r   r   )argsparser	argumentsr   r   r   r   main   s   

r'   __main__)F)
__future__r   r   r   r   unparserr    r   r   r'   __name__argvr   r   r   r   <module>   s    
