Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
opt
/
alt
/
python35
/
lib
/
python3.5
/
site-packages
/
setuptools
/
__pycache__
/
File Content:
monkey.cpython-35.opt-1.pyc
i�Re� � @ 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&