diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..5c84ba4 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,8 @@ +language: python +python: + - "2.7" + - "3.4" +install: pip install -r requirements.txt +script: make check +notifications: + email: false diff --git a/README.md b/README.md index 0bd5b50..0808e5a 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/backoff.py b/backoff.py index 16bd49b..f8e9881 100644 --- a/backoff.py +++ b/backoff.py @@ -1,4 +1,5 @@ # coding:utf-8 +from __future__ import unicode_literals """ Function decoration for pluggable backoff and retry @@ -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: