Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def is_properly_formatted(self, number):
return is_isbn10(number) or is_isbn13(number)
def valid_isbn(isbn):
return isbnlib.is_isbn10(isbn) or isbnlib.is_isbn13(isbn)
def check_value(self, value):
return is_isbn10(value) or is_isbn13(value)