????

Your IP : 18.222.35.177


Current Path : /usr/lib/python3.6/site-packages/future/backports/__pycache__/
Upload File :
Current File : //usr/lib/python3.6/site-packages/future/backports/__pycache__/total_ordering.cpython-36.opt-1.pyc

3

�c��@s0dZddlZejdkr$ddlmZndd�ZdS)	z�
For Python < 2.7.2. total_ordering in versions prior to 2.7.2 is buggy.
See http://bugs.python.org/issue10042 for details. For these versions use
code borrowed from Python 2.7.3.

From django.utils.
�N��)�total_orderingcCs�ddd�fddd�fddd�fgddd�fd	d
d�fddd�fgd	dd�fdd
d�fddd�fgddd�fddd�fd	dd�fgd�}tt|��t|�@}|s�td��t|�}x<||D]0\}}||kr�||_tt|�j|_t|||�q�W|S)z6Class decorator that fills in missing ordering methods�__gt__cSs||kp||kS)N�)�self�otherrr�$/usr/lib/python3.6/total_ordering.py�<lambda>sz total_ordering.<locals>.<lambda>�__le__cSs||kp||kS)Nr)rrrrr	r
s�__ge__cSs
||kS)Nr)rrrrr	r
scSs||kp||kS)Nr)rrrrr	r
s�__lt__cSs||ko||kS)Nr)rrrrr	r
scSs
||kS)Nr)rrrrr	r
scSs||kp||kS)Nr)rrrrr	r
scSs||kp||kS)Nr)rrrrr	r
scSs
||kS)Nr)rrrrr	r
scSs||kp||kS)Nr)rrrrr	r
scSs||ko||kS)Nr)rrrrr	r
scSs
||kS)Nr)rrrrr	r
s)r
rrrz6must define at least one ordering operation: < > <= >=)	�set�dir�
ValueError�max�__name__�getattr�int�__doc__�setattr)�clsZconvert�roots�root�opname�opfuncrrr	r
s,







r)rrr)r�sys�version_info�	functoolsrrrrr	�<module>s