|
Server : Apache System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64 User : njnconst ( 1116) PHP Version : 8.4.18 Disable Function : NONE Directory : /opt/alt/python35/lib/python3.5/site-packages/setuptools/__pycache__/ |
Upload File : |
��\� � @ s� d Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l m Z d d l
m Z d d l Z g Z
d d � Z d d � Z d
d � Z d d
� Z d d � Z d d � Z d d � Z d d � Z d d � Z d S)z
Monkey patching of distutils.
� N� )�
import_module)�sixc C s- t j � d k r | f | j St j | � S)am
Returns the bases classes for cls sorted by the MRO.
Works around an issue on Jython where inspect.getmro will not return all
base classes if multiple classes share the same name. Instead, this
function will return a tuple containing the class itself, and the contents
of cls.__bases__. See https://github.com/pypa/setuptools/issues/1024.
ZJython)�platformZpython_implementation� __bases__�inspectZgetmro)�cls� r �
/monkey.py�_get_mro s r c C sF t | t j � r t n! t | t j � r0 t n d d � } | | � S)Nc S s d S)Nr )�itemr r r
�<lambda>* s zget_unpatched.<locals>.<lambda>)�
isinstancer Zclass_types�get_unpatched_class�types�FunctionType�get_unpatched_function)r �lookupr r r
�
get_unpatched&