Your IP : 18.119.19.206


Current Path : /lib/python2.7/site-packages/pip/_vendor/lockfile/
Upload File :
Current File : //lib/python2.7/site-packages/pip/_vendor/lockfile/symlinklockfile.pyo

�
��abc@@sjddlmZddlZddlZddlmZmZmZmZm	Z	defd��YZ
dS(i(tabsolute_importNi(tLockBaset	NotLockedt	NotMyLocktLockTimeoutt
AlreadyLockedtSymlinkLockFilecB@sMeZdZedd�Zdd�Zd�Zd�Zd�Z	d�Z
RS(s'Lock access to a file using symlink(2).cC@s6tj||||�tjj|j�d|_dS(Ni(Rt__init__tostpathtsplittunique_name(tselfR	tthreadedttimeout((sH/usr/lib/python2.7/site-packages/pip/_vendor/lockfile/symlinklockfile.pyR
scC@s|dk	r|n|j}tj�}|dk	rL|dkrL||7}nx�trytj|j|j�Wn�tk
r|j	�r�dS|dk	r�tj�|kr�|dkr�t
d|j��q�td|j��ntj
|dk	r|dnd�qOXdSqOWdS(Nis&Timeout waiting to acquire lock for %ss%s is already lockedi
g�������?(tNoneRttimetTrueRtsymlinkRt	lock_filetOSErrorti_am_lockingRR	Rtsleep(RRtend_time((sH/usr/lib/python2.7/site-packages/pip/_vendor/lockfile/symlinklockfile.pytacquires$
	
'cC@sX|j�s"td|j��n"|j�sDtd|j��ntj|j�dS(Ns%s is not lockeds%s is locked, but not by me(t	is_lockedRR	RRRtunlinkR(R((sH/usr/lib/python2.7/site-packages/pip/_vendor/lockfile/symlinklockfile.pytrelease6s
cC@stjj|j�S(N(RR	tislinkR(R((sH/usr/lib/python2.7/site-packages/pip/_vendor/lockfile/symlinklockfile.pyR=scC@s.tjj|j�o-tj|j�|jkS(N(RR	RRtreadlinkR(R((sH/usr/lib/python2.7/site-packages/pip/_vendor/lockfile/symlinklockfile.pyR@scC@s,tjj|j�r(tj|j�ndS(N(RR	RRR(R((sH/usr/lib/python2.7/site-packages/pip/_vendor/lockfile/symlinklockfile.pyt
break_lockDsN(t__name__t
__module__t__doc__RRRRRRRR(((sH/usr/lib/python2.7/site-packages/pip/_vendor/lockfile/symlinklockfile.pyR
s#			(t
__future__RRRtRRRRRR(((sH/usr/lib/python2.7/site-packages/pip/_vendor/lockfile/symlinklockfile.pyt<module>s(

?>