tra-analysis/analysis-master/tra_analysis/equation/parser/py2.py

21 lines
408 B
Python
Raw Normal View History

2020-12-07 23:33:59 +00:00
# Titan Robotics Team 2022: py2 module
# Written by Arthur Lu
# Notes:
# this module should only be used internally, contains old python 2.X functions that have been removed.
# setup:
from __future__ import division
__version__ = "1.0.0"
__changelog__ = """changelog:
1.0.0:
2020-12-09 03:56:22 +00:00
- added cmp function
2020-12-07 23:33:59 +00:00
"""
__author__ = (
"Arthur Lu <learthurgo@gmail.com>",
)
def cmp(a, b):
return (a > b) - (a < b)