+
    ÆÚjÊ  ã                   ó‚   € R t ^ RIt^ RIt^ RIt^ RIt^ RIt]P                  ! ]4      t ! R R]	4      t
 ! R R]4      tR# )zEA cross-process lock based on exclusive creation of a given file nameNc                   ó   € ] tR t^tRtRtR# )Ú	LockErrorz.It will be raised when unable to obtain a lock© N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú__static_attributes__r   ó    Ú�/opt/data/installs/351f81cc06284494/environments/aa258815729c481f8402f54f4c368f83/venv/lib/python3.14/site-packages/msal_extensions/filelock.pyr   r      s   † Ý8r   r   c                   ó<   a € ] tR t^t o RtR tR tR tR tRt	V t
R# )ÚCrossPlatLockz5This implementation relies only on ``open(..., 'x')``c                ó   € Wn         R # )N©Ú	_lockpath)ÚselfÚlockfile_paths   &&r   Ú__init__ÚCrossPlatLock.__init__   s   € Ø&Žr   c                ó¶   € V P                  R P                  \        P                  ! 4       \        P
                  ^ ,          4      P                  R4      4       V # )z{} {}zutf-8)Ú_create_lock_fileÚformatÚosÚgetpidÚsysÚargvÚencode)r   s   &r   Ú	__enter__ÚCrossPlatLock.__enter__   sA   € Ø×Ñ˜wŸ~™~Ü�IŠI‹KÜ�H‰H�Q�Kó ÷ ‰f�W‹oô	ð ˆr   c                ó0  € ^pRp\        \        R\        P                  4      pV! 4       V,           pWT! 4       8”  d<    \        V P                  R4      ;_uu_ 4       pVP	                  V4       RRR4       R# \        RP                  VV P                  4      4      h  + '       g   i     R# ; i  \
         d    \        R4      h\         dE    \        P                  R\        P                  ! 4       T4       \        P                  ! T4        Kâ  i ; i)é   g      Ð?Ú	monotonicÚxbNz1Python 2 does not support atomic creation of filez?Process %d found existing lock file, will retry after %f secondznUnable to obtain lock, despite trying for {} second(s). You may want to manually remove the stale lock file {})ÚgetattrÚtimeÚopenr   ÚwriteÚ
ValueErrorr   ÚFileExistsErrorÚloggerÚdebugr   r   Úsleepr   )r   ÚcontentÚtimeoutÚcheck_intervalÚcurrent_timeÚtimeout_endÚ	lock_files   &&     r   r   ÚCrossPlatLock._create_lock_file   sá   € ØˆØˆÜœt [´$·)±)Ó<ˆÙ"“n wÕ.ˆØ˜L›NÔ*ð
+Ü˜$Ÿ.™.¨$×/Ô/°9Ø—O‘O GÔ,÷ 0áô ðEßEKÁVØØ—‘óFóð 	÷ 0Ö/áûÜô UÜÐ SÓTÐTÜ"ô +Ü—‘ØUÜ—I’I“K ô1ô —
’
˜>×*ð	+ús6   ¾B1 ÁBÁ.B1 ÂB.	Â(B1 Â.B1 Â1DÃADÄDc                ó  €  \         P                  ! V P                  4       R#   \         dQ   pTP                  \        P
                  \        P                  39   d   \        P                  R 4        Rp?R# h Rp?ii ; i)zUnable to remove lock fileN)	r   Úremover   ÚOSErrorÚerrnoÚENOENTÚEACCESr*   r+   )r   ÚargsÚexs   &* r   Ú__exit__ÚCrossPlatLock.__exit__4   sU   € ð	Ü�IŠI�d—n‘nÖ%øÜô 	Ø�x‰xœEŸL™L¬%¯,©,Ð7Ô7ô —‘Ð9×:Ò:àûð	ús   ‚ $ ¤A?¯AA:Á9A:Á:A?r   N)r   r   r   r   r	   r   r   r   r<   r
   Ú__classdictcell__)Ú__classdict__s   @r   r   r      s!   ø‡ € Ù?ò'òò÷0	ð 	r   r   )r	   r   r   r7   r%   ÚloggingÚ	getLoggerr   r*   ÚRuntimeErrorr   Úobjectr   r   r   r   Ú<module>rD      sA   ðÙ KÛ 	Û 
Û Û Û ð 
×	Ò	˜8Ó	$€ô9�ô 9ô-�Fö -r   