OwlCyberSecurity - MANAGER
Edit File: ygen.cpython-36.opt-1.pyc
3 r��W�������������������@���s:���d�dl�Zd�dlZdd��Zdd��Zdd��Zedkr6e���dS�) �����Nc�������������C���sh���t�|��}d|�}d|�}x |D�]\}}|j��j|�rP�qW�x |D�]\}}|j��j|�r@P�q@W�|d�|fS�)Nz #--! %s-startz#--! %s-end����)� enumerate�strip� startswith�endswith)�lines�tagZsrclinesZ start_tagZend_tagZstart_index�lineZ end_index��r ����/usr/lib/python3.6/ygen.py�get_source_range ���s����r���c�������������C���sF���g�}d}d|�}x0|�D�](}|j���j|�r0|�}q|r|j|��qW�|S�)NTz#--! %s)r���r����append)r���r���Zfiltered_lines�includeZtag_textr ���r ���r ���r����filter_section���s���� r���c��������������C���s����t�jjt�}�tjt�jj|�d�t�jj|�d���tt�jj|�d�d��}|j��}W�d�Q�R�X�t |d�\}}t |d�\}}t |d�\}}|||��} t | d�} t | d�}||||�<�| |||�<�d d ��|D��}tt�jj|�d�d��}|j|��W�d�Q�R�X�td��d�S�) Nzyacc.pyzyacc.py.bak�rZ parsedebugZparseoptzparseopt-notrack�DEBUGZTRACKINGc�������������S���s���g�|�]}|j���d���qS�)� )�rstrip)�.0r ���r ���r ���r���� <listcomp>>���s����zmain.<locals>.<listcomp>�wzUpdated yacc.py) �os�path�dirname�__file__�shutilZcopy2�join�open� readlinesr���r���� writelines�print)r����fr���Zparse_startZ parse_endZparseopt_startZparseopt_endZparseopt_notrack_startZparseopt_notrack_endZ orig_linesZparseopt_linesZparseopt_notrack_linesr ���r ���r����main'���s ���� r"����__main__)Zos.pathr���r���r���r���r"����__name__r ���r ���r ���r����<module> ���s���