def delete(self):
        rc = Security.lib.SecKeychainItemDelete(self.keychain_item)
        if rc != 0:
            raise RuntimeError("Unable to delete %s: rc=%d" % (self, rc))

        from CoreFoundation import CFRelease
        CFRelease(self.keychain_item)

        self.keychain_item = None
        self.service_name  = None
        self.account_name  = None
        self.password      = None
Use new-style Python classes
dataset/ETHPy150Open MacSysadmin/pymacadmin/lib/PyMacAdmin/Security/Keychain.py/GenericPassword.delete--crossover with--dataset/ETHPy150Open openstack/rally/tests/hacking/checks.py/check_old_type_class