Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/139638/?format=api
http://patches.dpdk.org/api/patches/139638/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20240423091252.62924-3-juraj.linkes@pantheon.tech/", "project": { "id": 1, "url": "http://patches.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<20240423091252.62924-3-juraj.linkes@pantheon.tech>", "list_archive_url": "https://inbox.dpdk.org/dev/20240423091252.62924-3-juraj.linkes@pantheon.tech", "date": "2024-04-23T09:12:50", "name": "[v1,2/4] dts: unify class inheritance from object", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "e3ae970d58910dc6d434eab21245ca7dcb6a6820", "submitter": { "id": 1626, "url": "http://patches.dpdk.org/api/people/1626/?format=api", "name": "Juraj Linkeš", "email": "juraj.linkes@pantheon.tech" }, "delegate": { "id": 1, "url": "http://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20240423091252.62924-3-juraj.linkes@pantheon.tech/mbox/", "series": [ { "id": 31808, "url": "http://patches.dpdk.org/api/series/31808/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=31808", "date": "2024-04-23T09:12:48", "name": "node and inheritance improvements", "version": 1, "mbox": "http://patches.dpdk.org/series/31808/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/139638/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/139638/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id C1C2E43EE8;\n\tTue, 23 Apr 2024 11:13:08 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 70E3F40ED6;\n\tTue, 23 Apr 2024 11:12:59 +0200 (CEST)", "from mail-lj1-f180.google.com (mail-lj1-f180.google.com\n [209.85.208.180])\n by mails.dpdk.org (Postfix) with ESMTP id B4F4E40E96\n for <dev@dpdk.org>; Tue, 23 Apr 2024 11:12:56 +0200 (CEST)", "by mail-lj1-f180.google.com with SMTP id\n 38308e7fff4ca-2dd6c160eaaso25436361fa.1\n for <dev@dpdk.org>; Tue, 23 Apr 2024 02:12:56 -0700 (PDT)", "from jlinkes-PT-Latitude-5530.pantheon.local\n (81.89.53.154.host.vnet.sk. [81.89.53.154])\n by smtp.gmail.com with ESMTPSA id\n be12-20020a0564021a2c00b0056bf7f92346sm6440534edb.50.2024.04.23.02.12.55\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 23 Apr 2024 02:12:55 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=pantheon.tech; s=google; t=1713863576; x=1714468376; darn=dpdk.org;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=POd0GSb2K63XKJkciMVY1iQ21SV6WsWHfpk4iSkhhL4=;\n b=hFdrA8kEzZoc+602wTT4X6KWBq4jzYp++2Qtp94R+YD20V5CUM36YZ59gVJu2E+Ey4\n jUON5aW47SEsWrDoSypbK2S57NH5sgRpPagtgfInHWbZs2ec/4qcd6wihOf3ExTDf8nP\n yBFVKrLX7UumbtVD2ad/X0NLM3yyP6nwDD7FMCPFHIpr9xIPoZ80+NpcPCRHx1DXJtu4\n drWCPpjCPntW6XsCVBeu03bG/65nniWugE+57vHJWNetFNmHrxlDyp7G7es+zqknLWgu\n 1Q1A9BcZb1wsyglOzjGC/jq5Ac9N8kmgWX4608s6bWJ+t1nOBN8zaEihDeLiZTwimhqW\n r5BQ==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1713863576; x=1714468376;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc\n :subject:date:message-id:reply-to;\n bh=POd0GSb2K63XKJkciMVY1iQ21SV6WsWHfpk4iSkhhL4=;\n b=cx7aH44baKNg3zgYYBoZrZHHNGawuocjRxdWaSb++9HGdn+HGah7J4wJAr1ItUqT07\n ab+zzqQmhi6oSbgm4VjvEr5GzDh5Tl0X3UAN6al53WMRF6d5q8el+Ge1GYFCx/ld7iFx\n pvPUnYin4qVTwk4OkX/SJJ8cs9/wX//jF5oG7rdffHrLUS/xhlW8h1B1ytbls8IuJRxT\n lPjx8NM8VclVX/8F2ENc1XrkpjtNxYiz7psshq+0773jWBkN/YaNCf+cBeOv2AewqdHZ\n G3NMIiAQUELWXHBPxpHlVFDzF1ceWrcnDtm42RtviwOmh+axkFBW6DnNh2MHL+HkjPrb\n pD/g==", "X-Gm-Message-State": "AOJu0YyGl0e7oWGdukiIY4N5W4rgsOX8AUPBfFXxszIC/WZVBerDy3w+\n y2SsFf3+x6IYeRhfryMSrTr9JMyY8ytH+dkZ5BDWQRLZsOJYYoXsDYki5bDlnV4=", "X-Google-Smtp-Source": "\n AGHT+IGCI8A49iSIq68CiyLKMVQRF2pPweaUoAJvkqREUw6fnOYxfpiUtJCMh1IVxX6Dvkwt4GRk5w==", "X-Received": "by 2002:a2e:9607:0:b0:2dc:b91f:81ce with SMTP id\n v7-20020a2e9607000000b002dcb91f81cemr10526922ljh.10.1713863576183;\n Tue, 23 Apr 2024 02:12:56 -0700 (PDT)", "From": "=?utf-8?q?Juraj_Linke=C5=A1?= <juraj.linkes@pantheon.tech>", "To": "thomas@monjalon.net, Honnappa.Nagarahalli@arm.com, jspewock@iol.unh.edu,\n probb@iol.unh.edu, paul.szczepanek@arm.com, Luca.Vizzarro@arm.com,\n npratte@iol.unh.edu", "Cc": "dev@dpdk.org, =?utf-8?q?Juraj_Linke=C5=A1?= <juraj.linkes@pantheon.tech>", "Subject": "[PATCH v1 2/4] dts: unify class inheritance from object", "Date": "Tue, 23 Apr 2024 11:12:50 +0200", "Message-Id": "<20240423091252.62924-3-juraj.linkes@pantheon.tech>", "X-Mailer": "git-send-email 2.34.1", "In-Reply-To": "<20240423091252.62924-1-juraj.linkes@pantheon.tech>", "References": "<20240423091252.62924-1-juraj.linkes@pantheon.tech>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "Content-Transfer-Encoding": "8bit", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org" }, "content": "There are two ways we specify that a class inherits from object -\nimplicitly and explicitly. There's no need to explicitly specify that a\nclass inherits from object and is in fact mostly a remnant from Python2.\nLeaving it implicit is the standard in Python3 and offers a small bonus\nin cases where something would assign something else to the builtin\nobject variable.\n\nSigned-off-by: Juraj Linkeš <juraj.linkes@pantheon.tech>\n---\n dts/framework/remote_session/testpmd_shell.py | 2 +-\n dts/framework/test_result.py | 4 ++--\n dts/framework/test_suite.py | 2 +-\n dts/framework/testbed_model/cpu.py | 4 ++--\n dts/framework/testbed_model/sut_node.py | 2 +-\n dts/framework/testbed_model/virtual_device.py | 2 +-\n dts/framework/utils.py | 4 ++--\n 7 files changed, 10 insertions(+), 10 deletions(-)", "diff": "diff --git a/dts/framework/remote_session/testpmd_shell.py b/dts/framework/remote_session/testpmd_shell.py\nindex cb2ab6bd00..9456de941d 100644\n--- a/dts/framework/remote_session/testpmd_shell.py\n+++ b/dts/framework/remote_session/testpmd_shell.py\n@@ -27,7 +27,7 @@\n from .interactive_shell import InteractiveShell\n \n \n-class TestPmdDevice(object):\n+class TestPmdDevice:\n \"\"\"The data of a device that testpmd can recognize.\n \n Attributes:\ndiff --git a/dts/framework/test_result.py b/dts/framework/test_result.py\nindex 28f84fd793..83e637c280 100644\n--- a/dts/framework/test_result.py\n+++ b/dts/framework/test_result.py\n@@ -96,7 +96,7 @@ def __bool__(self) -> bool:\n return self is self.PASS\n \n \n-class FixtureResult(object):\n+class FixtureResult:\n \"\"\"A record that stores the result of a setup or a teardown.\n \n :attr:`~Result.FAIL` is a sensible default since it prevents false positives (which could happen\n@@ -132,7 +132,7 @@ def __bool__(self) -> bool:\n return bool(self.result)\n \n \n-class BaseResult(object):\n+class BaseResult:\n \"\"\"Common data and behavior of DTS results.\n \n Stores the results of the setup and teardown portions of the corresponding stage.\ndiff --git a/dts/framework/test_suite.py b/dts/framework/test_suite.py\nindex 9c3b516002..7efa0eae44 100644\n--- a/dts/framework/test_suite.py\n+++ b/dts/framework/test_suite.py\n@@ -27,7 +27,7 @@\n from .utils import get_packet_summaries\n \n \n-class TestSuite(object):\n+class TestSuite:\n \"\"\"The base class with building blocks needed by most test cases.\n \n * Test suite setup/cleanup methods to override,\ndiff --git a/dts/framework/testbed_model/cpu.py b/dts/framework/testbed_model/cpu.py\nindex 9e33b2825d..a50cf44c19 100644\n--- a/dts/framework/testbed_model/cpu.py\n+++ b/dts/framework/testbed_model/cpu.py\n@@ -26,7 +26,7 @@\n \n \n @dataclass(slots=True, frozen=True)\n-class LogicalCore(object):\n+class LogicalCore:\n \"\"\"Representation of a logical CPU core.\n \n A physical core is represented in OS by multiple logical cores (lcores)\n@@ -50,7 +50,7 @@ def __int__(self) -> int:\n return self.lcore\n \n \n-class LogicalCoreList(object):\n+class LogicalCoreList:\n r\"\"\"A unified way to store :class:`LogicalCore`\\s.\n \n Create a unified format used across the framework and allow the user to use\ndiff --git a/dts/framework/testbed_model/sut_node.py b/dts/framework/testbed_model/sut_node.py\nindex 97aa26d419..10d56eba8d 100644\n--- a/dts/framework/testbed_model/sut_node.py\n+++ b/dts/framework/testbed_model/sut_node.py\n@@ -34,7 +34,7 @@\n from .virtual_device import VirtualDevice\n \n \n-class EalParameters(object):\n+class EalParameters:\n \"\"\"The environment abstraction layer parameters.\n \n The string representation can be created by converting the instance to a string.\ndiff --git a/dts/framework/testbed_model/virtual_device.py b/dts/framework/testbed_model/virtual_device.py\nindex e9b5e9c3be..569d67b007 100644\n--- a/dts/framework/testbed_model/virtual_device.py\n+++ b/dts/framework/testbed_model/virtual_device.py\n@@ -7,7 +7,7 @@\n \"\"\"\n \n \n-class VirtualDevice(object):\n+class VirtualDevice:\n \"\"\"Base class for virtual devices used by DPDK.\n \n Attributes:\ndiff --git a/dts/framework/utils.py b/dts/framework/utils.py\nindex cc5e458cc8..f9ed1b562f 100644\n--- a/dts/framework/utils.py\n+++ b/dts/framework/utils.py\n@@ -82,7 +82,7 @@ def __str__(self) -> str:\n return self.name\n \n \n-class MesonArgs(object):\n+class MesonArgs:\n \"\"\"Aggregate the arguments needed to build DPDK.\"\"\"\n \n _default_library: str\n@@ -131,7 +131,7 @@ class _TarCompressionFormat(StrEnum):\n zstd = \"zst\"\n \n \n-class DPDKGitTarball(object):\n+class DPDKGitTarball:\n \"\"\"Compressed tarball of DPDK from the repository.\n \n The class supports the :class:`os.PathLike` protocol,\n", "prefixes": [ "v1", "2/4" ] }{ "id": 139638, "url": "