From ab47210ec6869c839dc5d1cfb8b6c7371cd4e801 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 28 Dec 2014 10:34:44 +0530 Subject: [PATCH] ... --- src/calibre/gui2/store/stores/amazon_plugin.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/calibre/gui2/store/stores/amazon_plugin.py b/src/calibre/gui2/store/stores/amazon_plugin.py index 20b721ff7b..0d8a181550 100644 --- a/src/calibre/gui2/store/stores/amazon_plugin.py +++ b/src/calibre/gui2/store/stores/amazon_plugin.py @@ -256,10 +256,4 @@ class AmazonKindleStore(StorePlugin): search_result.drm = SearchResult.DRM_LOCKED return True -if __name__ == '__main__': - import os - from tempfile import gettempdir - rp = os.path.join(gettempdir(), 'raw.html') - for result in search_amazon('heroes abercrombie', write_html_to=rp): - print (result) - print ('HTML written to: %s' % rp) +