From 555e4b688a34f7ea3e3058fdde6e256f64f8268a Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Tue, 16 Jun 2015 02:15:57 +0200 Subject: [PATCH] Python 2 fixes --- tests/cli/test_repair.py | 2 ++ vdirsyncer/cli/utils.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/cli/test_repair.py b/tests/cli/test_repair.py index f91a769..0b7e320 100644 --- a/tests/cli/test_repair.py +++ b/tests/cli/test_repair.py @@ -1,3 +1,5 @@ +# encoding: utf-8 + from textwrap import dedent from vdirsyncer.cli.utils import repair_storage diff --git a/vdirsyncer/cli/utils.py b/vdirsyncer/cli/utils.py index df70a04..c06a9e2 100644 --- a/vdirsyncer/cli/utils.py +++ b/vdirsyncer/cli/utils.py @@ -666,7 +666,7 @@ def repair_storage(storage): all_hrefs = list(storage.list()) for i, (href, _) in enumerate(all_hrefs): item, etag = storage.get(href) - cli_logger.info('[{}/{}] Processing {}' + cli_logger.info(u'[{}/{}] Processing {}' .format(i, len(all_hrefs), href)) parsed = item.parsed