Viewing File: /usr/lib/python3.6/site-packages/pip/_vendor/requests/__pycache__/help.cpython-36.opt-1.pyc

3

ajS@sdZddlmZddlZddlZddlZddlZddlmZddlm	Z	ddlm
Z
ddlmZ
ydd	lmZWn ek
rdZdZdZYnXddlZddlZd
dZdd
ZddZedkredS)z'Module containing bug report helper(s).)print_functionN)idna)urllib3)chardet)__version__)	pyopensslcCstj}|dkrtj}nj|dkr\dtjjtjjtjjf}tjjdkrdj	|tjjg}n(|dkrntj}n|dkrtj}nd}||d	S)
aReturn 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 2.7.5 it will return
    {'name': 'CPython', 'version': '2.7.5'}.

    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.
    ZCPythonZPyPyz%s.%s.%sfinalZJythonZ
IronPythonUnknown)nameversion)
platformZpython_implementationZpython_versionsysZpypy_version_infomajorminormicroreleaseleveljoin)implementationZimplementation_versionr/usr/lib/python3.6/help.py_implementations 


rc	Csytjtjd}Wntk
r4ddd}YnXt}dtji}dtji}ddd}trrtjdtj	j
d}dttddi}dtt
ddi}ttd	d}d|dk	rd|ndi}|||tdk	|||||dtid

S)z&Generate information for a bug report.)systemreleaserr
Nr
)r
Zopenssl_versionz%xrOPENSSL_VERSION_NUMBER)
rr
system_sslZusing_pyopensslZ	pyOpenSSLrrcryptographyrZrequests)rrrIOErrorrrrrOpenSSLZSSLrgetattrrrsslrrequests_version)	Z
platform_infoZimplementation_infoZurllib3_infoZchardet_infoZpyopenssl_infoZcryptography_infoZ	idna_inforZsystem_ssl_inforrrinfo;s8

r#cCsttjtddddS)z)Pretty-print the bug information as JSON.T)Z	sort_keysindentN)printjsondumpsr#rrrrmainrsr)__main__)__doc__Z
__future__rr'rrr!Zpip._vendorrrrr
rr"Zpackages.urllib3.contribrImportErrorrrrr#r)__name__rrrr<module>s,
!7
Back to Directory File Manager