관리-도구
편집 파일: line_endings.cpython-311.pyc
� �܋f� � � � d Z ddlZddlZddlZd� Zd� Zd� Zd� Zd� Zd� Z e d k r eej d � � dS dS )z9 Functions for converting from DOS to UNIX line endings � Nc � � t j � | � � rt | d� � dS t | d� � 5 }|� � � }ddd� � n# 1 swxY w Y d|v rt | d� � dS t j dd|� � }||k rOt d| � � t | d � � 5 }|� |� � ddd� � n# 1 swxY w Y | S t | d � � dS )zFReplace CRLF with LF in argument files. Print names of changed files.� Directory!N�rb� �Binary!� � z dos2unix:�wb�ok� �os�path�isdir�print�open�read�re�sub�write��file�fp�data�newdata�fs �o/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib64/python3.11/site-packages/numpy/distutils/line_endings.py�dos2unixr su � � �w�}�}�T��� � �d�L�!�!�!��� �d�D� � � �R��w�w�y�y��� � � � � � � � � � ���� � � � ��t�|�|� �d�I�������f�V�T�4�(�(�G��$��� �k�4� � � � �$�� � � �� �G�G�G���� � � � � � � � � � � ���� � � � ��� �d�D�����s$ �A#�#A'�*A'� C"�"C&�)C&c � � |D ]H}t j � ||� � }t |� � }|�| � |� � �Id S �N)r r �joinr �append��modified_files�dir_name� file_namesr � full_paths r �dos2unix_one_dirr'