From f208950bab4c8d483f50a7b36884c262162a9d24 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 25 Sep 2010 22:53:27 -0600 Subject: [PATCH] ... --- src/calibre/library/restore.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/calibre/library/restore.py b/src/calibre/library/restore.py index 63cd152ae9..83e6565937 100644 --- a/src/calibre/library/restore.py +++ b/src/calibre/library/restore.py @@ -8,7 +8,6 @@ __docformat__ = 'restructuredtext en' import re, os, traceback, shutil from threading import Thread from operator import itemgetter -from textwrap import TextWrapper from calibre.ptempfile import TemporaryDirectory from calibre.ebooks.metadata.opf2 import OPF @@ -61,11 +60,10 @@ class Restore(Thread): self.failed_restores] if failures: ans += 'Failed to restore the books in the following folders:\n' - wrap = TextWrapper(initial_indent='\t\t', width=1085) for dirpath, tb in failures: ans += '\t' + dirpath + ' with error:\n' - ans += wrap.fill(tb) - ans += '\n' + ans += '\n'.join('\t\t'+x for x in tb.splitlines()) + ans += '\n\n' if self.conflicting_custom_cols: ans += '\n\n'