From f0ae35bc4a7ecdcbe8ae6fcc23bf20762a0cee76 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Tue, 8 May 2012 11:59:10 -0700 Subject: [PATCH] Python 2.6 on TravisCI --- .travis.yml | 2 ++ beets/ui/commands.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 5193a680d..70bf2bef0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,9 @@ language: python python: - "2.7" + - "2.6" install: - pip install . --use-mirrors - pip install pylast flask --use-mirrors + - "if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then pip install unittest2 --use-mirrors; fi" script: nosetests diff --git a/beets/ui/commands.py b/beets/ui/commands.py index 811ddf3fb..8720fc1d6 100644 --- a/beets/ui/commands.py +++ b/beets/ui/commands.py @@ -314,7 +314,7 @@ def choose_candidate(candidates, singleton, rec, color, timid, opts = ('Use as-is', 'Skip', 'Enter search', 'enter Id', 'aBort') else: - print_("No matching release found for {} tracks." + print_("No matching release found for {0} tracks." .format(itemcount)) print_('For help, see: ' 'https://github.com/sampsyo/beets/wiki/FAQ#wiki-nomatch')