/usr/share/doc/python3-pycurl/tests/__pycache__
NameSizeModeActions
app.cpython-36.pyc43580644editdlrm
appmanager.cpython-36.pyc16860644editdlrm
cadata_test.cpython-36.pyc20450644editdlrm
certinfo_test.cpython-36.pyc30490644editdlrm
close_socket_cb_test.cpython-36.pyc32360644editdlrm
curl_object_test.cpython-36.pyc70240644editdlrm
debug_test.cpython-36.pyc25090644editdlrm
default_write_cb_test.cpython-36.pyc19120644editdlrm
error_constants_test.cpython-36.pyc13040644editdlrm
error_test.cpython-36.pyc27880644editdlrm
failonerror_test.cpython-36.pyc30370644editdlrm
ftp_test.cpython-36.pyc18780644editdlrm
global_init_test.cpython-36.pyc12590644editdlrm
header_cb_test.cpython-36.pyc19020644editdlrm
header_test.cpython-36.pyc25910644editdlrm
high_level_curl_test.cpython-36.pyc10510644editdlrm
info_constants_test.cpython-36.pyc6860644editdlrm
internals_test.cpython-36.pyc68670644editdlrm
multi_option_constants_test.cpython-36.pyc31970644editdlrm
multi_socket_test.cpython-36.pyc24770644editdlrm
multi_test.cpython-36.pyc84390644editdlrm
multi_timer_test.cpython-36.pyc21380644editdlrm
open_socket_cb_test.cpython-36.pyc45960644editdlrm
option_constants_test.cpython-36.pyc210590644editdlrm
perform_test.cpython-36.pyc30460644editdlrm
procmgr.cpython-36.pyc33270644editdlrm
protocol_constants_test.cpython-36.pyc19510644editdlrm
readdata_test.cpython-36.pyc94460644editdlrm
read_cb_test.cpython-36.pyc49850644editdlrm
relative_url_test.cpython-36.pyc10340644editdlrm
reload_test.cpython-36.pyc6740644editdlrm
reset_test.cpython-36.pyc21100644editdlrm
resolve_test.cpython-36.pyc13100644editdlrm
runwsgi.cpython-36.pyc40900644editdlrm
seek_cb_constants_test.cpython-36.pyc11040644editdlrm
setopt_lifecycle_test.cpython-36.pyc18740644editdlrm
setopt_string_test.cpython-36.pyc14420644editdlrm
setopt_test.cpython-36.pyc52080644editdlrm
setopt_unicode_test.cpython-36.pyc19280644editdlrm
setup_test.cpython-36.pyc85450644editdlrm
share_test.cpython-36.pyc24180644editdlrm
sockopt_cb_test.cpython-36.pyc37730644editdlrm
unset_range_test.cpython-36.pyc14340644editdlrm
user_agent_string_test.cpython-36.pyc13470644editdlrm
util.cpython-36.pyc85050644editdlrm
version_comparison_test.cpython-36.pyc8450644editdlrm
version_constants_test.cpython-36.pyc43110644editdlrm
version_test.cpython-36.pyc7510644editdlrm
weakref_test.cpython-36.pyc9100644editdlrm
write_abort_test.cpython-36.pyc13670644editdlrm
write_cb_bogus_test.cpython-36.pyc20130644editdlrm
write_test.cpython-36.pyc97440644editdlrm
write_to_stringio_test.cpython-36.pyc17440644editdlrm
xferinfo_cb_test.cpython-36.pyc28520644editdlrm
__init__.cpython-36.pyc3290644editdlrm
Edit: /usr/share/doc/python3-pycurl/tests/__pycache__/util.cpython-36.pyc (8505B)
3 [c @stddlZddlZddlZddlZddlZddlZejddkZerpddl m Z m Z ddZ ddZ eZeZeZnRyddlm Z Wn ek rddl m Z YnXe Z d dZ d dZ eZeZeZd d Zd dZddZddZddZddZddZddZddZ ddZ!dd Z"y ej#Z#Wn e$k rDd-d!d"Z#YnXd#d$Z%d.d%d&Z&d'd(Z'd)d*Z(d+d,Z)dS)/N)StringIOBytesIOcCs |jdS)z Byte literalzlatin-1)encode)sr3/builddir/build/BUILD/pycurl-7.43.0.2/tests/util.pybsr cCs|S)z Text literalr)rrrrusr )rcCs|S)z Byte literalr)rrrrr (scCst|jdddS)z Text literalz\\z\\\\Zunicode_escape)unicodereplace)rrrrr ,scCsVt|t|kstxDsz,pycurl_version_less_than..-.)pycurl version_infosplitr)specrversionrrrpycurl_version_less_thanAs&rcs$ddltjfdd}|S)Nrcs&tjddkrjjjd||S)Nrrz python >= 3)sysrpluginsskipSkipTest)argskwargs)fnnoserr decoratedJszonly_python2..decorated)nose.plugins.skip functoolswraps)r%r'r)r%r&r only_python2Gsr+cs$ddltjfdd}|S)Nrcs&tjddkrjjjd||S)Nrrz python < 3)rrr r!r")r#r$)r%r&rrr'Vszonly_python3..decorated)r(r)r*)r%r'r)r%r&r only_python3Ssr,csddlfdd}|S)Nrcs tjfdd}|S)Ncs6tjddfkr,jjjdf||S)Nrzpython < %d.%d)rrr r!r")r#r$)r%majorminorr&rrr'csz0min_python..decorator..decorated)r)r*)r%r')r.r/r&)r%r decoratorbszmin_python..decorator)r()r.r/r0r)r.r/r&r min_python_s r1csddlfdd}|S)Nrcs"tjfdd}|S)Ncs.tr$jjjdf||S)Nzlibcurl < %d.%d.%d)rr r!r")r#r$)r%r.r/r&patchrrr'rs z1min_libcurl..decorator..decorated)r)r*)r%r')r.r/r&r2)r%rr0qszmin_libcurl..decorator)r()r.r/r2r0r)r.r/r&r2r min_libcurlns r3cs.ddlddltjfdd}|S)Nrcs(djdkrjjjd||S)Nhttpszlibcurl does not support ssl)rr r!r")r#r$)r%r&rrrr'szonly_ssl..decorated)r(rr)r*)r%r'r)r%r&rronly_ssl}s r6csfdd}|S)Ncs0ddlddltjfdd}|S)Nrcsvdjdkrjjjddjkr.d}n$djkr>d}ndjkrNd }nd }|krljjjd |||S) Nr4r5zlibcurl does not support sslzOpenSSL/opensslzGnuTLS/ZgnutlszNSS/ZnssnonezSSL backend is %s)rr r!r"r)r#r$Zcurrent_backend)backendsr%r&rrrr's   z7only_ssl_backends..decorator..decorated)r(rr)r*)r%r')r9)r%r&rrr0sz$only_ssl_backends..decoratorr)r9r0r)r9ronly_ssl_backendss r:cs.ddlddltjfdd}|S)Nrcs*jdj@s jjjd||S)Nzlibcurl does not support ipv6)rZ VERSION_IPV6r r!r")r#r$)r%r&rrrr'szonly_ipv6..decorated)r(rr)r*)r%r'r)r%r&rr only_ipv6sr<cs$ddltjfdd}|S)Nrcs"tjdkrjjjd||S)Nwin32z Unix only)rplatformr r!r")r#r$)r%r&rrr's zonly_unix..decorated)r(r)r*)r%r'r)r%r&r only_unixsr?cs.ddlddltjfdd}|S)a;Converts curl error 48, CURLE_UNKNOWN_OPTION, into a SkipTest exception. This is meant to be used with tests exercising libcurl features that depend on external libraries, such as libssh2/gssapi, where libcurl does not provide a way of detecting whether the required libraries were compiled against.rNc sZy ||Sjk rTtjd}tdrP|jdjkrPjjjdYnXdS)NrE_UNKNOWN_OPTIONrz#CURLE_UNKNOWN_OPTION, skipping test) errorrexc_infohasattrr#r@r r!r")r#r$exc)r%r&rrrr's   z/guard_unknown_libcurl_option..decorated)r(rr)r*)r%r'r)r%r&rrguard_unknown_libcurl_options rEcCs(tj}|dk r|j||j||S)N)socket settimeoutconnect)netloctimeoutrrrrcreate_connections   rKc CsXd}xNt|D]B}yt||}Wn tjk r@tj|YqX|jd}PqW|S)NFT)rrKrFrA_timesleepclose)rIZcheck_intervalZ num_attemptsokrconnrrrwait_for_network_servicesrQc Cs|dkrtj}|dd}yddlm}Wntk r>|SXd}|rP|d}|}d|tjddf}x||tjtjfD]j}|sq|tjj |d}xPdd|d|fD]:}tjj tjj ||}tjj |r||kr|j d |qWq|W|S) Nr) get_platformz%s-%srbuildlibzlib.r) rpathZdistutils.utilrR ImportErrorroscurdirpardirjoinnormpathisdirinsert) prRZp0platZplat_specifierprefixdZsubdirdirrrr get_sys_paths,  rdcCs"ddl}|j}|j|jd|S)NrT)rZCurlsetoptZ FORBID_REUSE)rcurlrrr DefaultCurlsrgcCs(t}tjdkr$|j|jd|g|S)zThis is a default curl with localhost -> 127.0.0.1 name mapping on windows systems, because they don't have it in the hosts file. r=zlocalhost:%d:127.0.0.1)rgrr>reZRESOLVE)portrfrrrDefaultCurlLocalhosts ricstjfdd}|S)Nc s(tj}t||jgSQRXdS)N)tempfileNamedTemporaryFilelistfile)r#f)r%rrwrapper*s z%with_real_write_file..wrapper)r)r*)r%ror)r%rwith_real_write_file)srp)N)N)*rjrXrrFtimerLr)rZpy3iorrr r str text_typebytes binary_typerZlong_int cStringIOrWr longrrr+r,r1r3r6r:r<r?rErKAttributeErrorrQrdrgrirprrrrsR