ó BuÆ_c@s dZddlmZddlZddlZddlZddlZddlmZddlm Z ddlm Z ddl m Z ydd lmZWn#ek r¿dZdZdZnXddlZddlZd „Zd „Zd „Zed kr eƒndS(s'Module containing bug report helper(s).iÿÿÿÿ(tprint_functionN(tidna(turllib3(tchardeti(t __version__(t pyopensslcCsÙtjƒ}|dkr'tjƒ}n |dkr‹dtjjtjjtjjf}tjjdkrÇdj |tjjgƒ}qÇn<|dkr¦tjƒ}n!|dkrÁtjƒ}nd}i|d 6|d 6S( s×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 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. tCPythontPyPys%s.%s.%stfinalttJythont IronPythontUnknowntnametversion( tplatformtpython_implementationtpython_versiontsystpypy_version_infotmajortminortmicrot releaseleveltjoin(timplementationtimplementation_version((sJ/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/requests/help.pyt_implementations       c Cshy$itjƒd6tjƒd6}Wn%tk rKidd6dd6}nXtƒ}itjd6}itjd6}idd6dd6}t r³it jd6dt j j d6}nit t ddƒd6}it tddƒd6}tj }i|dk rd|ndd6}i |d 6|d 6|d 6tdk d 6|d 6|d6|d6|d6|d6itd6d6S(s&Generate information for a bug report.tsystemtreleaseR RR topenssl_versions%xRRRt system_ssltusing_pyopensslt pyOpenSSLRRt cryptographyRtrequestsN(RRRtIOErrorRRRRtNonetOpenSSLtSSLtOPENSSL_VERSION_NUMBERtgetattrR"RtsslRtrequests_version( t platform_infotimplementation_infot urllib3_infot chardet_infotpyopenssl_infotcryptography_infot idna_infoRtsystem_ssl_info((sJ/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/requests/help.pytinfo;sJ        cCs&ttjtƒdtddƒƒdS(s)Pretty-print the bug information as JSON.t sort_keystindentiN(tprinttjsontdumpsR4tTrue(((sJ/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/requests/help.pytmainqst__main__(t__doc__t __future__RR8RRR*t pip._vendorRRRR RR+tpip._vendor.urllib3.contribRt ImportErrorR%R&R"RR4R;t__name__(((sJ/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/requests/help.pyts,         ! 6