Your IP : 216.73.216.213
B
� f� � @ s* d dl Z dd� Zdd� Zedkr&e� dS )� Nc C s( t jdd � } x| D ]}t|� qW d S )N� )�sys�argv�process)�args�filename� r �</opt/alt/python37/lib64/python3.7/Tools/scripts/fixheader.py�main s
r
c
C s� yt | d�}W n: tk
rH } ztj�d| t|�f � d S d }~X Y nX |�� }|�� |d d� dkr~tj�d| � d S yt | d�}W n: tk
r� } ztj�d| t|�f � d S d }~X Y nX tj�d| � d }x:| D ]2}t|�d
k�r|� � �r||�
� }q�|d }q�W |t_td|� td
|� td� td� td� t� |�|� t� td� td� td� tdd| d� d S )N�rz%s: can't open: %s
� z/*z!%s does not begin with C comment
�wz%s: can't write: %s
zProcessing %s ...
ZPy_� �_z#ifndefz#definez#ifdef __cpluspluszextern "C" {z#endif�}z #endif /*�!z*/)
�open�IOErrorr �stderr�write�str�read�close�ord�isalnum�upper�stdout�print)r �f�msg�data�magic�cr r r r sD
r �__main__)r r
r �__name__r r r r �<module> s $