From patchwork Tue Jan 10 22:08:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladislav Odintsov X-Patchwork-Id: 1724370 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=2605:bc80:3010::137; helo=smtp4.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=WpeK6V2J; dkim-atps=neutral Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137]) (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 4Ns4kF5Ltjz23fY for ; Wed, 11 Jan 2023 09:10:13 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 40559418C0; Tue, 10 Jan 2023 22:10:11 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 40559418C0 Authentication-Results: smtp4.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=WpeK6V2J X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6z_aPn0gj9QW; Tue, 10 Jan 2023 22:10:10 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp4.osuosl.org (Postfix) with ESMTPS id 18EE5402E5; Tue, 10 Jan 2023 22:10:09 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 18EE5402E5 Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id D5600C0033; Tue, 10 Jan 2023 22:10:08 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by lists.linuxfoundation.org (Postfix) with ESMTP id 37CF5C0070 for ; Tue, 10 Jan 2023 22:10:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 6E6C94029B for ; Tue, 10 Jan 2023 22:08:39 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 6E6C94029B X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23RDqsJL1q6N for ; Tue, 10 Jan 2023 22:08:38 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 1FDA54180B Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by smtp4.osuosl.org (Postfix) with ESMTPS id 1FDA54180B for ; Tue, 10 Jan 2023 22:08:37 +0000 (UTC) Received: by mail-lf1-x134.google.com with SMTP id bu8so20630705lfb.4 for ; Tue, 10 Jan 2023 14:08:37 -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=WpeK6V2J+PZigs3LL16ObYAMH/PxbIqHD9k9zFKjXp96yeWpQ2s9jsRWaho19MRlXE WSPWf0Y9Wf+MP7ZQGsgWWCe1WA+FO3svl5rThvvcUAStDu5eWJyc0byJFjzDvSBHdQWv jP24n6iQ7aiKfVdqrTfKrSei4dZRQqVY1ckzxJlXVigpJ2k5/kJsHuthA8m3xXTJZPkb 36hJRT2AmHNW+r4GHUGfqqZpHPsQ4dawJLzvnoSmx0sE96QrDQpSIQMXAJ9SeiZYEt1n zuqigJWx+o6HwRA6I8gVEgecO+spZgx/C+M8uLkzvdHNJkElXi5U5w2SdOlJW6iWFlON 1M8A== 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=H7v3hlbmi4xM5maR9/tkjQjH4kpHsyXfdt4At/40s2enAqVEsMrSuiZG64+UJRQ8RJ 7nEffap4pO6p+j/wLvuWOzr+pbIENC7zhLOk6iF423z2SUpywdGRcuR3lQirOxH7HUBG jSUbly6ZthyxLLdRen2274qipg/BT6XFlwK3/R5+uQgAngoot0BOkLEWP00ArQW+2Hq3 JwkCbpL94Zta8/iF/KwO19q6zCkPKbwfbIjKIIQhQHBThWKpYqqj7O+UJ1dS4Ln487/q vDb5vYHGonNV2Ec7o6PxwfQkV6K5S/uFZqNCVfILgJxHZv7Ng2T6uRmNyAuBNEjgM+Ei pAGw== X-Gm-Message-State: AFqh2krFQgufnbAFxBeqjNEZGQHsQjnesmJjikU5Eri/30UrrN4n8xkz o9gEW49vqfe68g6YIGiptbyQMgC6zQBTYUFl X-Google-Smtp-Source: AMrXdXsgz12DJs9rYExhuLuILgE+I7hvlg8ge7cMzsA350ahdzHWLNvpbYdJazTg8oZmQ5+u2goHRw== X-Received: by 2002:a05:6512:70a:b0:4c0:4214:cd2c with SMTP id b10-20020a056512070a00b004c04214cd2cmr17282895lfs.43.1673388515898; Tue, 10 Jan 2023 14:08:35 -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 u10-20020a19790a000000b004cb1135953fsm2344686lfc.240.2023.01.10.14.08.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Jan 2023 14:08:35 -0800 (PST) From: Vladislav Odintsov To: dev@openvswitch.org Date: Wed, 11 Jan 2023 01:08:30 +0300 Message-Id: <20230110220832.3527525-2-odivlad@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20230110220832.3527525-1-odivlad@gmail.com> References: <20230110220832.3527525-1-odivlad@gmail.com> MIME-Version: 1.0 Cc: Dumitru Ceara , Vladislav Odintsov Subject: [ovs-dev] [PATCH ovn branch-20.12 2/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)":