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) +