%PDF- %PDF-
Direktori : /lib/python3.12/test/support/__pycache__/ |
Current File : //lib/python3.12/test/support/__pycache__/os_helper.cpython-312.pyc |
� ���f�^ � � � d dl Zd dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl Z d dl Z d dlZd dlm Z dZdj e ej � � Zedz Zej$ dk( rd dlZ ej( de� ZdZej, dk( re ej. � j$ d k\ rwed z Z ej1 ej2 � � ede�d ej2 � �d �� dZn0ej$ dvr" dj9 ej2 � � dZdD ]. Z ej@ ejB e� � ek7 re"� eZ n ejF � Z$dZ%dD ]# Z ej9 ej2 � � �% ereez Z'ndZ'e'xs eZ(d� Z)da*d� Z+d� Z,da-d� Z.d� Z/da0d� Z1d� Z2da3d� Z4d� Z5d� Z6d� Z7ej$ jq d � rd?d!�Z9d"� Z:d#� Z;d$� Z<d%� Z=nejn Z:ej| Z;d&� Z<d'� Z=d(� Z>d)� Z?ej� d@d*�� ZAej� d?d+�� ZBej� dAd,�� ZCd-� ZDej� d.� � ZEd/� ZF G d0� d1� ZGd2� ZH eIed3� rej� d4� � ZJnej� d5� � ZJ G d6� d7ej� j� � ZM e j� r!d dlOZO eOj� d8d9�:� ZQd ZRd ZSd;ZTd<ZUneV� ej� d=� � ZWy# e$ r Y ���w xY w# e$ r( edj9 ej2 � d� z ZY �� w xY w# e"$ r Y ��(w xY w# e$ rY ej9 ej2 � ejL � � n # e$ r Y Y ��&w xY w ejB e� ez Z%Y ��w xY w# eXeVf$ r d>� ZWY yw xY w)B� N)�supportz@testz {}_{}_tmpu -àòɘŁğ�darwin�NFD�nt� u -共Ł♡ͣ�zWARNING: The filename z, CAN be encoded by the filesystem encoding (z.). Unicode filename tests may not be effective> �wasir � emscripten� �s -��surrogateescape� )� æu İu Łu φu Кu אu ،u تu ก� u €)s �w�r s ���s �s ��c �� � t t d� } | j � | j � t t � S # | j � t t � w xY w)z` Create an invalid file descriptor by opening and closing a file and return its fd. �wb)�open�TESTFN�fileno�close�unlink��files �-/usr/lib/python3.12/test/support/os_helper.py�make_bad_fdr � sB � � ����D���{�{�}�� � ���v��� � � ���v��s �A �!A"c � � t �t S t j j t � } | dz } t j | |� d}t j |� |a |S # t t t f$ r d}Y |a |S w xY w)N�can_symlinkTF) �_can_symlink�os�path�abspathr �symlink�remove�OSError�NotImplementedError�AttributeError)�src�symlink_path�cans r r r � s� � ����� �'�'�/�/�&� !�C���&�L� � � � �3��%��� � � �,���L��J�� �(�.�9� ��� �L��J��s �A'