PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /lib64/python2.7/test/
Server: Linux apophis.o2switch.net 4.18.0-553.111.1.lve.el8.x86_64 #1 SMP Fri Mar 13 13:42:17 UTC 2026 x86_64
IP: 109.234.164.184
Choose File :

Url:
Dir : //lib64/python2.7/test/symlink_support.pyc

�
zfc@s�ddlZddlZddlZddlmZd�Zd�Zed�Ze	ed�rjej
nej�dkr�endZ
d�Z
dS(	i����N(tTESTFNcCs�ttdd�}|dk	r"|Std}ytt|�t}Wn tttfk
ret	}nXt
j|�|t_|S(Ntprev_valtcan_symlink(
tgetattrRtNoneRtsymlinktTruetOSErrortNotImplementedErrortAttributeErrortFalsetostremoveR(Rtsymlink_pathtcan((s,/usr/lib64/python2.7/test/symlink_support.pyRs




	cCs,t�}d}|r|Stj|�|�S(s8Skip decorator for tests that require functional symlinks*Requires functional symlink implementation(Rtunittesttskip(ttesttoktmsg((s,/usr/lib64/python2.7/test/symlink_support.pytskip_unless_symlinks	cs�ddl��jjj}�jj�jj�jjf|_�jj|_	��fd����fd��|p�t
jj|�}�||||��dS(s�
    Ctypes symlink implementation since Python doesn't support
    symlinks in windows yet. Borrowed from jaraco.windows project.
    i����Ncs�d}d}d}d}d}d}||B}d}|}	d}
�jj�}d}d}
�jjj|||	|
�j|�||
�}�|�|j}�jjj|�|S(	sr
        Call FormatMessage with a system error number to retrieve
        the descriptive error message.
        ii iiiiiN(	RtwintypestLPWSTRtwindlltkernel32tFormatMessageWtbyreftvaluet	LocalFree(terrnotALLOCATE_BUFFERtARGUMENT_ARRAYtFROM_HMODULEtFROM_STRINGtFROM_SYSTEMtIGNORE_INSERTStflagstsourcet
message_idtlanguage_idt
result_buffertbuffer_sizet	argumentstbytestmessage(tctypesthandle_nonzero_success(s,/usr/lib64/python2.7/test/symlink_support.pytformat_system_message+s2
	
	cs@|dkr<�jjj�}�|�}t||��ndS(Ni(RRtGetLastErrortWindowsError(tresultRtstrerror(R-R/(s,/usr/lib64/python2.7/test/symlink_support.pyR.Rs(
tctypes.wintypesRRtCreateSymbolicLinkWRRtDWORDtargtypestBOOLEANtrestypeRtpathtisdir(ttargettlinkttarget_is_directorytCreateSymbolicLink((R-R/R.s,/usr/lib64/python2.7/test/symlink_support.pyt_symlink_win32s		'RtWindowscCs6ytj|�Wntk
r1tj|�nXdS(N(RtrmdirRR(tname((s,/usr/lib64/python2.7/test/symlink_support.pytremove_symlink_s
(RRtplatformttest.test_supportRRRR
R@thasattrRtsystemRRD(((s,/usr/lib64/python2.7/test/symlink_support.pyt<module>s		>