Commit 64f3bc43 authored by Mattia Bondanza's avatar Mattia Bondanza

Fixed a bug in checkISBN13 function, make it crash with an ISBN10 terminating with 'X'

parent 0054d47e
......@@ -174,7 +174,7 @@ def checkISBN10( isbn ):
def checkISBN13( isbn ):
if len( isbn ) != 13 :
return False
if not isbn[0:9].isdigit() :
if not isbn[0:13].isdigit() :
return False
checksum = 0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment