def addUserByMD5(self, cu, user, salt, password):
        for letter in user:
            if nameCharacterSet not in letter:
                raise errors.InvalidName(user)
        try:
            cu.execute("INSERT INTO Users (userName, salt, password) "
                       "VALUES (?, ?, ?)",
                       (user, salt.encode('hex'), password))
            uid = cu.lastrowid
        except sqlerrors.ColumnNotUnique:
            raise errors.UserAlreadyExists, 'user: %s' % user

        # make sure we don't conflict with another entry based on case; this
        # avoids races from other processes adding case differentiated
        # duplicates
        cu.execute("SELECT userId FROM Users WHERE LOWER(userName)=LOWER(?)",
                   user)
        if len(cu.fetchall()) > 1:
            raise errors.UserAlreadyExists, 'user: %s' % user

        return uid
dataset/ETHPy150Open sassoftware/conary/conary/repository/netrepos/netauth.py/UserAuthorization.addUserByMD5/swapped operands of `not in`