jenkins-bot has submitted this change and it was merged.
Change subject: Revert "Fix isbn.py -to13 operation when ISBN are already in this format" ......................................................................
Revert "Fix isbn.py -to13 operation when ISBN are already in this format"
This reverts commit a8008a210585759ac46f962eb2d6bd1ebad0460c.
Change-Id: I803ce258512b78d87046b5cca9b369a446ecb773 --- M scripts/isbn.py 1 file changed, 1 insertion(+), 5 deletions(-)
Approvals: Dalba: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/isbn.py b/scripts/isbn.py index 7e83f9d..b96676c 100755 --- a/scripts/isbn.py +++ b/scripts/isbn.py @@ -1466,11 +1466,7 @@ except InvalidIsbnException: # don't change return isbn - i1x = getIsbn(isbn) - if not isinstance(i1x, ISBN13): - i13 = i1x.toISBN13() - else: - i13 = i1x + i13 = getIsbn(isbn).toISBN13() return i13.code