def example_exc_handler(tries_remaining, exception, delay):
    """Example exception handler; prints a warning to stderr.

    tries_remaining: The number of tries remaining.
    exception: The exception instance which was raised.
    """
    print >> sys.stderr, (exception, tries_remaining, delay) % "Caught '%s', %d tries remaining, sleeping for %s seconds"
dataset/ETHPy150Open keithmoss/Hodor/hodor/retries.py/example_exc_handler/swapped operands of `%`