From 08eb0e1a59309f0749e19f6898201d260703c4c4 Mon Sep 17 00:00:00 2001
From: Sengian
Date: Wed, 15 Dec 2010 01:07:40 +0100
Subject: [PATCH] Minor modifications
---
src/calibre/ebooks/metadata/fictionwise.py | 2 +-
src/calibre/ebooks/metadata/google_books.py | 11 ++++++-----
src/calibre/ebooks/metadata/nicebooks.py | 2 +-
3 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/src/calibre/ebooks/metadata/fictionwise.py b/src/calibre/ebooks/metadata/fictionwise.py
index 48dac131cc..96638a1788 100644
--- a/src/calibre/ebooks/metadata/fictionwise.py
+++ b/src/calibre/ebooks/metadata/fictionwise.py
@@ -233,7 +233,7 @@ class ResultList(list):
description = self.reimg.sub('', description.group("desc"))
description = self.recomment.sub('', description)
description = self.resanitize.sub('', sanitize_comments_html(description))
- return _('SUMMARY:\n %s') % re.sub(r'\n\s+
','\n', description)
+ return _('SUMMARY:\n%s') % re.sub(r'\n\s+','\n', description)
def get_publisher(self, entry):
publisher = self.output_entry(entry.xpath('./p')[1])
diff --git a/src/calibre/ebooks/metadata/google_books.py b/src/calibre/ebooks/metadata/google_books.py
index fd18f080a0..41b2edfefb 100644
--- a/src/calibre/ebooks/metadata/google_books.py
+++ b/src/calibre/ebooks/metadata/google_books.py
@@ -146,7 +146,7 @@ class Query(object):
# print etree.tostring(feed, pretty_print=True)
total = int(total_results(feed)[0].text)
- nbresultstoget = total if total