zmc
2023-12-22 9fdbf60165db0400c2e8e6be2dc6e88138ac719a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
U
¡ý°d#ã@sødZddlZddlZddlZddlZddlZddlZddlmZ    z ddl
Z
Wne k
rddZ
YnXz ddl Z Wne k
rŠdZ YnXzddl mZWn e k
r¼dZdZdZYnXddlZddlZdd„Zdd    „Zd
d „Zed krôeƒdS) z'Module containing bug report helper(s).éNé)Ú __version__)Ú    pyopensslcCsŽt ¡}|dkrt ¡}nj|dkr\d tjjtjjtjj¡}tjj    dkr„d 
|tjj    g¡}n(|dkrnt ¡}n|dkr€t ¡}nd}||d    œS)
aÙReturn a dict with the Python implementation and version.
 
    Provide both the name and the version of the Python implementation
    currently running. For example, on CPython 3.10.3 it will return
    {'name': 'CPython', 'version': '3.10.3'}.
 
    This function works best on CPython and PyPy: in particular, it probably
    doesn't work for Jython or IronPython. Future investigation should be done
    to work out the correct shape of the code for those platforms.
    ÚCPythonÚPyPyz{}.{}.{}ÚfinalÚÚJythonÚ
IronPythonÚUnknown)ÚnameÚversion) ÚplatformÚpython_implementationÚpython_versionÚformatÚsysÚpypy_version_infoÚmajorÚminorÚmicroÚ releaselevelÚjoin)ÚimplementationÚimplementation_version©rúDd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\requests/help.pyÚ_implementation"s& 
ý 
ÿ
 
rc
Csüzt ¡t ¡dœ}Wntk
r4dddœ}YnXtƒ}dtji}ddi}ddi}trddtji}trrdtji}dddœ}t    r”t    jt    j
j d›dœ}dt t ddƒi}dt tddƒi}tj }d|dk    rÌ|d›ndi}    |||    tdk    tdk||||||dtid    œ S)
z&Generate information for a bug report.)ÚsystemÚreleaser r Nr)r Úopenssl_versionÚxr) rrÚ
system_sslZusing_pyopensslZusing_charset_normalizerZ    pyOpenSSLÚurllib3ÚchardetÚcharset_normalizerÚ cryptographyÚidnaÚrequests)rrrÚOSErrorrr#rr%r$ÚOpenSSLZSSLÚOPENSSL_VERSION_NUMBERÚgetattrr&r'ÚsslrÚrequests_version)
Z platform_infoZimplementation_infoZ urllib3_infoZcharset_normalizer_infoZ chardet_infoZpyopenssl_infoZcryptography_infoZ    idna_infor"Zsystem_ssl_inforrrÚinfoEs\þ
þ 
 
 
þ
þ
ÿ
ÿÿôr/cCsttjtƒdddƒdS)z)Pretty-print the bug information as JSON.Té)Ú    sort_keysÚindentN)ÚprintÚjsonÚdumpsr/rrrrÚmain€sr6Ú__main__)Ú__doc__r4rr-rr'r#rrr.r%Ú ImportErrorr$Zurllib3.contribrr*r&rr/r6Ú__name__rrrrÚ<module>s8  
 
 
#;