Skip to content
This repository was archived by the owner on Aug 8, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
language: python
python:
- "2.7"
- "3.4"
install: pip install -r requirements.txt
script: make check
notifications:
email: false
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# backoff

[![Build Status](https://travis-ci.org/litl/backoff.png?branch=master)](https://travis-ci.org/litl/backoff?branch=master)

Function decoration for pluggable backoff and retry

This module provides function decorators which can be used to wrap a
Expand Down
3 changes: 2 additions & 1 deletion backoff.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding:utf-8
from __future__ import unicode_literals

"""
Function decoration for pluggable backoff and retry
Expand Down Expand Up @@ -154,7 +155,7 @@ def constant(interval):

# Formats a function invocation as a unicode string for logging.
def _invoc_repr(f, args, kwargs):
args_out = ", ".join(unicode(a) for a in args)
args_out = ", ".join("%s" % a for a in args)
if args and kwargs:
args_out += ", "
if kwargs:
Expand Down