From patchwork Tue Jan 10 22:09:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladislav Odintsov X-Patchwork-Id: 1724374 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=140.211.166.136; helo=smtp3.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=BGMZvann; dkim-atps=neutral Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Ns4kk4p6Zz23gL for ; Wed, 11 Jan 2023 09:10:38 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id D230361102; Tue, 10 Jan 2023 22:10:36 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org D230361102 Authentication-Results: smtp3.osuosl.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=BGMZvann X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9Pn4X43ZX7C6; Tue, 10 Jan 2023 22:10:36 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [IPv6:2605:bc80:3010:104::8cd3:938]) by smtp3.osuosl.org (Postfix) with ESMTPS id EA1D8610F8; Tue, 10 Jan 2023 22:10:34 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org EA1D8610F8 Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 92405C007D; Tue, 10 Jan 2023 22:10:34 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136]) by lists.linuxfoundation.org (Postfix) with ESMTP id 183A8C0080 for ; Tue, 10 Jan 2023 22:10:32 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 08D4E610BA for ; Tue, 10 Jan 2023 22:09:27 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 08D4E610BA X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aFZhtfDWxaQR for ; Tue, 10 Jan 2023 22:09:26 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org E88B561053 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by smtp3.osuosl.org (Postfix) with ESMTPS id E88B561053 for ; Tue, 10 Jan 2023 22:09:25 +0000 (UTC) Received: by mail-lf1-x131.google.com with SMTP id bt23so20599196lfb.5 for ; Tue, 10 Jan 2023 14:09:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Hwc/9HYkpHzvN6ApCI9/03WzRRMWE3bxW1tJPy472W8=; b=BGMZvannQq+sjccBcxJuMa3d/JlYBYees/TdfUIH4KmJ98NBQF/giRXlKybd1GBryM TSpdQS+aG4d/gyhDVvk2w3R84oYzz1XJzM/GvK3jXiOVvr+Q7FeYtaD4xqFeoL53nfwD s0Q1vpWd7TEBbWrsO29UBPSQiwZjFqY5eHPZbiEDwbHh2MLLMhxVUzaSKrgjcpdqz3kS kafrvpprTap7Yvd2j50v1C9wdzNd4qH71dQ/qmoTMvL9PgGixQmNK2A6NtniaBskB0Yn elvpf7M360mtzGDTROibhkWh5M3nxsE00PH8PxH60kKgTgdakOcH/PC8yyDYOUYPsYMZ yR8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Hwc/9HYkpHzvN6ApCI9/03WzRRMWE3bxW1tJPy472W8=; b=Yy9SoEBf3752BUYasTfbB4dWUzjhts0jqIDTZAU02weGlObk8jl6Zi4YICflA5dUOa B2x1xhQ05T6ZD3OUsc+aI2255FGvTea0BUBXG1PTgQtbIyLE+qHx/Pb+P37RUeUAcEth eNLRssv/Y3O8oY1EChIHnjQ0X8YZ3ln7VOs1Q5FxoaEst/ldRkmZMYFuL0JXm+CMTmJO etJm2Oce4azxL/LUJsbuEt2ffFcULkWXUNhhh6XHEAKG5zkxWgWzop5SspWDiPsfzvDg X9ZQYuVuc7RgLqX8ghd8EYmBKlejWFE5c5egEYiyUYjudOXGYKhO7dT4wHaNMl2CKvNn avGw== X-Gm-Message-State: AFqh2krVRETQn9RuRnN73Vx65dr5URs7ANy9unL3mLpEO9hXLHzGoxLr MHUrYnSMY/WiAwKAFRLZSzDwE/ZQcK+6qrYR X-Google-Smtp-Source: AMrXdXsWUPFGWGoVSmf/Er6N301z0V2I5RpaSWmlA4xqMBr9f+nD+zApPpfL2jLtPp3T4MnW+cNTrg== X-Received: by 2002:a05:6512:32d5:b0:4cc:73ff:579a with SMTP id f21-20020a05651232d500b004cc73ff579amr4026313lfg.38.1673388563713; Tue, 10 Jan 2023 14:09:23 -0800 (PST) Received: from ip-10-70-112-12.vpc-1e810be1.internal (c2-178-216-98-9.elastic.cloud.croc.ru. [178.216.98.9]) by smtp.gmail.com with ESMTPSA id f5-20020ac25085000000b0049313f77755sm2377456lfm.213.2023.01.10.14.09.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Jan 2023 14:09:23 -0800 (PST) From: Vladislav Odintsov To: dev@openvswitch.org Date: Wed, 11 Jan 2023 01:09:12 +0300 Message-Id: <20230110220913.3528012-3-odivlad@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20230110220913.3528012-1-odivlad@gmail.com> References: <20230110220913.3528012-1-odivlad@gmail.com> MIME-Version: 1.0 Cc: Dumitru Ceara , Vladislav Odintsov Subject: [ovs-dev] [PATCH ovn branch-20.09 3/4] Fix compilation issue in fedora 37/rawhide. X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" From: Numan Siddique Compilation is failing with the error: File "Documentation/conf.py", line 61, in with open(filename, 'rU') as f: ^^^^^^^^^^^^^^^^^^^^ ValueError: invalid mode: 'rU' The python 3 documentation [1] says: There is an additional mode character permitted, 'U', which no longer has any effect, and is considered deprecated. It previously enabled universal newlines in text mode, which became the default behaviour in Python 3.0. Refer to the documentation of the newline parameter for further details. [1] - https://docs.python.org/3.9/library/functions.html#open This patch fixes this issue. Acked-by: Dumitru Ceara Signed-off-by: Numan Siddique (cherry picked from commit 500982b84280fdc451877c76f5fdb9a0ac19e805) Signed-off-by: Vladislav Odintsov --- Documentation/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/conf.py b/Documentation/conf.py index d89c64e77..f7eceaec8 100644 --- a/Documentation/conf.py +++ b/Documentation/conf.py @@ -58,7 +58,7 @@ author = u'The Open Virtual Network (OVN) Development Community' # The full version, including alpha/beta/rc tags. release = None filename = "../configure.ac" -with open(filename, 'rU') as f: +with open(filename, 'r') as f: for line in f: if 'AC_INIT' in line: # Parse "AC_INIT(openvswitch, 2.7.90, bugs@openvswitch.org)":