def __sub__(self, other):
        if isinstance(other, timedelta):
            return self + timedelta(-other.days)
        if isinstance(other, date):
            days1 = self.toordinal()
            days2 = other.toordinal()
            return timedelta(days1 - days2)
        return NotImplemented
Replacement for tornado.gen.coroutine that manages a blueox context
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/datetime.py/date.__sub__--crossover with--dataset/ETHPy150Open rhettg/BlueOx/blueox/tornado_utils.py/coroutine