Your IP : 216.73.216.213
B
���]�9 � @ s� d Z ddlZddlZddlZddlZddlZejdkpDeedd�dkZyddlm Z W n e
k
rr dd � Z Y nX G d
d� d�ZG dd
� d
e�Z
G dd� de�ZG dd� d�ZG dd� d�ZdS )�
� N�win32�_nameF�nt)�fspathc C s� t | tjjtjjf�r| S t| �}y
|�| �S tk
r� t|d�rH� yddl }W n t
k
rh Y nX t | |j�r�tj�| �S td|j
��Y nX dS )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�ImportErrorZPurePath� TypeError�__name__)�path� path_typer � r �@/opt/alt/python37/lib/python3.7/site-packages/py/_path/common.pyr
s
r c @ sp e Zd ZdZdd� Zdd� Zdd� Zdd � Zd
d� Zdd
� Z dd� Z
dd� Zdd� Zdd� Z
dd� Zdd� ZdS )�Checkers)�exists�link�dir�filec C s
|| _ d S )N)r )�selfr r r r �__init__/ s zCheckers.__init__c C s t �d S )N)�NotImplementedError)r r r r r 2 s zCheckers.dirc C s t �d S )N)r )r r r r r 5 s z
Checkers.filec C s | j j�d�S )N�.)r �basename�
startswith)r r r r �dotfile8 s zCheckers.dotfilec C s |� d�sd| }| jj|kS )Nr )r"