U .e @ s d Z ddlmZ ddlZddlZddlZddlZddlmZ ddlm Z ddlm Z ddlmZ zdd lmZ W n ek r dZdZdZY nX ddlZddlZd d Zdd Zdd Zedkre dS )z'Module containing bug report helper(s). )print_functionN)idna)urllib3)chardet )__version__) pyopensslc C s t } | dkrt }nj| dkr\dtjjtjjtjjf }tjjdkrd |tjjg}n(| dkrnt }n| dkrt }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 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.%sfinal ZJythonZ IronPythonUnknown)nameversion) platformZpython_implementationZpython_versionsysZpypy_version_infomajorminormicroreleaseleveljoin)implementationZimplementation_version r =/usr/lib/python3.8/site-packages/pip/_vendor/requests/help.py_implementation s&