Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, iban, allow_invalid=False):
super(IBAN, self).__init__(iban)
if self.checksum_digits == "??":
self._code = self.country_code + self._calc_checksum_digits() + self.bban
if not allow_invalid:
self.validate()