tsukiji/orderbook.py
def clean_offers(f):
    '''Decorator that scans the list of offers and removes any offers whose timeout has passed.'''
    def func_wrapper(*args, **kwargs):
        for offer in offers:
            if offer['timeout'] < datetime.datetime.now():
                offers.remove(offer)
        return f(*args, **kwargs)
    return func_wrapper
Decorator that scans the list of offers and removes any offers whose timeout has passed.
Decorator that scans the list of offers and removes any offers whose timeout has passed.
Decorator that scans the list of offers and removes any offers whose timeout has passed .
def clean_offers(f):
    def func_wrapper(*args, **kwargs):
        for offer in offers:
            if offer['timeout'] < datetime.datetime.now():
                offers.remove(offer)
        return f(*args, **kwargs)
    return func_wrapper
def clean_offers ( f ) : def func_wrapper ( * args , ** kwargs ) : for offer in offers : if offer [ 'timeout' ] < datetime . datetime . now ( ) : offers . remove ( offer ) return f ( * args , ** kwargs ) return func_wrapper
Decorator that scans the list of offers and removes any offers whose timeout has passed.
Decorator that scans the list of offers and removes any offers whose timeout has passed .
'''Decorator that scans the list of offers and removes any offers whose timeout has passed.'''
f