
    1yiw                     N    d e dee e f   fdZ	 	 	 d	dee    dz  de dede de f
dZy)
linereturnc                 l    | j                  d      }|dk7  r| d| | |dz   d j                         fS | dfS )zkParses import lines for comments and returns back the
    import statement and the associated comment.
    #N    )findstrip)r   comment_starts     P/var/www/html/content_weaver/venv/lib/python3.12/site-packages/isort/comments.pyparser      sK     IIcNM^m$d=1+<+>&?&E&E&GHH":    commentsNoriginal_stringremovedcomment_prefixc                     |rt        |      d   S | s|S g }| D ]  }||vs|j                  |        t        |      d    | ddj                  |       S )z;Returns a string with comments added if removed is not set.     z; )r   appendjoin)r   r   r   r   unique_commentscomments         r   add_to_liner      sw     _%a((!#O ,/)""7+, O$Q'((8$))O:T9UVVr   )r   Fr   )strtupler   listboolr    r   r   <module>r       sm    c3h  	W3i$WW W 	W
 	Wr   