From 89c4368345955beff6fcb3d2b8c83692e2f8bb6b Mon Sep 17 00:00:00 2001 From: Alexandre Conde Date: Sun, 6 Mar 2016 11:25:27 +0000 Subject: [PATCH] set the default provider as merge for editions --- README.rst | 6 +++--- docs/devs.rst | 6 +++--- isbnlib/_editions.py | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.rst b/README.rst index 18104163..e6878fb7 100644 --- a/README.rst +++ b/README.rst @@ -129,10 +129,10 @@ Main Functions ``cache`` only allows two values: 'default' or None. You can change the kind of cache by using ``isbnlib.registry.set_cache`` (see below). -``editions(isbn, service='openl')`` +``editions(isbn, service='merge')`` Returns the list of ISBNs of editions related with this ISBN. By default - uses 'openl', but other providers are available: 'thingl' (uses the - service ThingISBN from **LibraryThing**), 'merge' (merges 'openl' with 'thingl') + uses 'merge' (merges 'openl' with 'thingl'), but other providers are available: + 'openl' users **Open Library**, 'thingl' (uses the service ThingISBN from **LibraryThing**) and 'any' (first tries 'openl', if no data, tries 'thingl'). ``isbn_from_words(words)`` diff --git a/docs/devs.rst b/docs/devs.rst index 3d15a2c1..1885ea7a 100644 --- a/docs/devs.rst +++ b/docs/devs.rst @@ -85,10 +85,10 @@ In the namespace ``isbnlib`` you have access to the core methods: ``cache`` only allows two values: 'default' or None. You can change the kind of cache by using ``isbnlib.registry.set_cache`` (see below). -``editions(isbn, service='openl')`` +``editions(isbn, service='merge')`` Returns the list of ISBNs of editions related with this ISBN. By default - uses 'openl', but other providers are available: 'thingl' (uses the - service ThingISBN from **LibraryThing**), 'merge' (merges 'openl' with 'thingl') + uses 'merge' (merges 'openl' with 'thingl'), but other providers are available: + 'openl' users **Open Library**, 'thingl' (uses the service ThingISBN from **LibraryThing**) and 'any' (first tries 'openl', if no data, tries 'thingl'). ``isbn_from_words(words)`` diff --git a/isbnlib/_editions.py b/isbnlib/_editions.py index e8605dcb..d730be46 100644 --- a/isbnlib/_editions.py +++ b/isbnlib/_editions.py @@ -43,7 +43,7 @@ def fake_provider_merge(isbn): return data -def editions(isbn, service='openl'): +def editions(isbn, service='merge'): """Return the list of ISBNs of editions related with this ISBN.""" isbn = EAN13(isbn) if not isbn: