o ai @ s d Z ddlmZ ddlZddlZddlZddlZddlmZ ddlm Z ddl mZ dZ zddlmZ W n ey? dZY nw zdd lmZ W n eyW dZdZdZY n w ddlZddlZd d Zdd Zdd Zedkrue dS dS )z'Module containing bug report helper(s). )print_functionN)idna)urllib3 )__version__)chardet) pyopensslc C s t } | dkr t }n5| dkr.dtjjtjjtjjf }tjjdkr-d |tjjg}n| dkr7t }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 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. CPythonPyPyz%s.%s.%sfinal Jython IronPythonUnknown)nameversion) platformpython_implementationpython_versionsyspypy_version_infomajorminormicroreleaseleveljoin)implementationimplementation_version r /builddir/build/BUILDROOT/alt-python310-pip-21.3.1-5.el8.x86_64/opt/alt/python310/lib/python3.10/site-packages/pip/_vendor/requests/help.py_implementation s&