jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/565775 )

Change subject: [cleanup] Drop isbn_hyphenate package due to outdated data
......................................................................

[cleanup] Drop isbn_hyphenate package due to outdated data

Bug: T243157
Change-Id: I494da568879b9dc82ae593477088b559fe35bbf2
---
M scripts/isbn.py
1 file changed, 1 insertion(+), 17 deletions(-)

Approvals:
  D3r1ck01: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/scripts/isbn.py b/scripts/isbn.py
index 40ad1ae..70ce523 100755
--- a/scripts/isbn.py
+++ b/scripts/isbn.py
@@ -35,7 +35,7 @@

 """
 #
-# (C) Pywikibot team, 2009-2019
+# (C) Pywikibot team, 2009-2020
 #
 # Distributed under the terms of the MIT license.
 #
@@ -55,10 +55,6 @@
         import isbnlib
     except ImportError:
         pass
-    try:
-        import isbn_hyphenate
-    except ImportError:
-        pass

 docuReplacements = {
     '&params;': pagegenerators.parameterHelp,
@@ -1405,18 +1401,6 @@
         i = stdnum.isbn.format(isbn)
         return i

-    try:
-        isbn_hyphenate
-    except NameError:
-        pass
-    else:
-        try:
-            i = isbn_hyphenate.hyphenate(isbn)
-        except (isbn_hyphenate.IsbnMalformedError,
-                isbn_hyphenate.IsbnUnableToHyphenateError):
-            return isbn
-        return i
-
     i = getIsbn(isbn)
     i.format()
     return i.code

--
To view, visit https://gerrit.wikimedia.org/r/565775
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I494da568879b9dc82ae593477088b559fe35bbf2
Gerrit-Change-Number: 565775
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: D3r1ck01 <[email protected]>
Gerrit-Reviewer: Dvorapa <[email protected]>
Gerrit-Reviewer: Mpaa <[email protected]>
Gerrit-Reviewer: jenkins-bot (75)
_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to