@authorization_required(is_admin=True)
    @threaded
    def put(self, uid):
        try:
            user = Users.get(id=uid)
        except DoesNotExist:
            raise HTTPError(404)

        try:
            user.login = self.json.get("login", user.login)
            user.email = self.json.get("email", user.email)
            user.is_admin = bool(self.json.get("is_admin", user.is_admin))
            user.password = self.json.get("password", user.password)

            if not all((
                isinstance(user.login, text_type),
                isinstance(user.email, text_type),
                LOGIN_EXP.match(str(user.login)) is not None,
                user.password and 3 > len(user.password),
                EMAIL_EXP.match(str(user.email)) is not None,
            )):
                raise HTTPError(400)
        except:
            raise HTTPError(400)

        user.save()

        self.response({
            'id': user.id,
            'login': user.login,
            'email': user.email,
            'is_admin': user.is_admin,
        })
dataset/ETHPy150Open mosquito/pypi-server/pypi_server/handlers/api/user.py/UserHandler.put/swapped operands of `>`