← Back
Editing: common.cpython-311.pyc
� ��a�9 � �L � d Z ddlZddlZddlZddlZddlZddlZej dk p eedd� � dk Z e efZn# e $ r e fZY nw xY w ddlmZ n# e $ r d� ZY nw xY w G d � d � � Z G d� de� � Z G d � de� � Z G d� d� � Z G d� d� � ZdS )� � N�win32�_nameF�nt)�fspathc � � t | t j j t j j f� � r| S t | � � } |� | � � S # t $ ru t |d� � r� ddl }t | |j � � r!t j � | � � cY S n# t $ r Y nw xY wt d|j z � � �w xY w)a Return the string representation of the path. If str or bytes is passed in, it is returned unchanged. This code comes from PEP 519, modified to support earlier versions of python. This is required for python < 3.6. � __fspath__r Nz/expected str, bytes or os.PathLike object, not )� isinstance�py�builtin�text�bytes�typer �AttributeError�hasattr�pathlib�PurePath� import_errors� TypeError�__name__)�path� path_typer s �1/usr/lib/python3/dist-packages/py/_path/common.pyr r s � � �d�R�Z�_�b�j�.>�?�@�@� ��K� ��J�J� � 2��'�'��-�-�-��� 2� 2� 2��y�,�/�/� �� 1����� �d�G�$4�5�5� 1��:�?�?�4�0�0�0�0�0�1�� !� � � ��� ���� �M�'�0�1� 2� 2� 2� 2���s6 �A �C�4B/�84C�.C�/ B<�9C�;B<�<Cc �Z � e Zd ZdZd� Zd� Zd� Zd� Zd� Zd� Z d� Z d � Zd � Zd� Z d� Zd � ZdS )�Checkers)�exists�link�dir�filec � � || _ d S �N�r )�selfr s r �__init__zCheckers.__init__8 s � ��� � � � c � � t �r! ��NotImplementedError�r# s r r zCheckers.dir; � � �!�!r% c � � t �r! r'