From patchwork Sun Dec 8 21:42:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 180974 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp3577147ile; Sun, 8 Dec 2019 13:42:26 -0800 (PST) X-Google-Smtp-Source: APXvYqzvHnR4bGPIUF4zBH0+HfaTh7Ohtju7va32MnvF2aK6G9AAWSpbwtUOPHUXIDzoJpAfSFzd X-Received: by 2002:a63:4282:: with SMTP id p124mr14938706pga.155.1575841346254; Sun, 08 Dec 2019 13:42:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575841346; cv=none; d=google.com; s=arc-20160816; b=P2Wx0BqxDhRE+3Zvc6DFll/RYWDMTu7H2epE1zNckKMKHY37eCfbb7imbx74e81pzl KpdujyUGozdjf9bzlPa9xoyk8c4ncNwWuaQhOENyzV6wq0jvnTTzDdDB6LdRuT760WI1 f9KWpl9eQYunK5m5wNeS1Dow35sbzR6fJsdoJoXi+iSqlxkDS6/My4HUAt2JZwMbNJ1g XHoyaT3fhFnTz7ZpKHkiABYXbbVzHRTySrhCgJ2Ghh+2NNzbhFDzL/M7fmTC5BCalLK2 ExHeL55y2FfOzi/T1NXsRjtER3WwTqgkG/ZmgHyvIjsNpKrPCjNZVqTWtj2gzUtXAYpG 2nqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:message-id:date:to:from:dkim-signature:delivered-to; bh=JA1CXC0E3yvzPnfkK1hx5qwQFa8ZycXymQB8vjyk7Cg=; b=bf+4OFcD8P7JPdwSOlrrIrkF04ROrdTjJDHDgBpfUZs40LgdMNlg1+SnMkHEixCOcW X/Qj9NMnmzp7QVzgDrxbuWWx8KhVcP1IZAzpZQridHNyj2Fr6DRBk73wctX+knWr6OhR npQV6nTVvIkE+5rVOMYWpV4VOaGk8c4XmB21SLMkgGnK9B4mQ6+XE814JWsKIdN8j6/R jLlDnY8qwDxSjkTpmwSkbaPIo0CuyFd5ZMzJeMsZZ0XTcmfS6o1MNugatj884yIWQEZQ AJEmYHsJyva2tyibUlsEOoAu2zDl+xBPPcVeOIs+nF0VEaIGeltnjQEpWrh1lQ9PAY5j PeAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=VWsfDGPy; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id d9si16245565pll.134.2019.12.08.13.42.25; Sun, 08 Dec 2019 13:42:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=VWsfDGPy; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 7C3287F9DE; Sun, 8 Dec 2019 21:42:23 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pj1-f44.google.com (mail-pj1-f44.google.com [209.85.216.44]) by mail.openembedded.org (Postfix) with ESMTP id 931E260273 for ; Sun, 8 Dec 2019 21:42:21 +0000 (UTC) Received: by mail-pj1-f44.google.com with SMTP id s35so4949806pjb.7 for ; Sun, 08 Dec 2019 13:42:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=M2YUY7OeyH5q92tql1if986ioJy6mnKXZJrV7d123ew=; b=VWsfDGPymo8rE/9IXKxPAm44d78CzklL50sc9v1hIXThcckAFVv+fbsad18keJ5O9r zsUR3mOvSvw+DKtO8TMgw8/42UadPkjbz/sx2myVAKVVLUaIQ0o+PXF+GjxVywDKXUZy OX3o4eI+WDWkENqPJa/9iDAfyXNxbmkyayrJs/SwXvCvv0x78zkAz6R+HQ69Gcl09j6s vLzo+TgL81BT9mfcrGkw7rp/VkxyTxlKJMkbgu30pkBeM+b9l7WxaNolFDZw68mcSS16 XR78crOHACsV3suz3idWV3Tzt4WkMuAU4XRlNQl4OLX5gUpPV8h6joH4VfYZweYEzuY3 Wm6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=M2YUY7OeyH5q92tql1if986ioJy6mnKXZJrV7d123ew=; b=bxC5bJCM/LwYnaYwfMm1YbQqk40rDVivWteou7UaK22MJYiBtpfvPDUBRQU4wkdHgE 6ToimEskB1KxZ7YIFTjxA5mfDWHVfBEnuhAQDiyD6dnCei86MYyZpzf8eKGEtY2jWyJv 7RxudrW9CYqqe+QyweRiFR1k5VleSmY+g387laq7JspUPjryPIBKG87kGjA5hplD/HwZ 8/RBzXG+tQ8U77aQDAXdoH5PlnMSvjxr2Yf8Jw33tUgH1gE5Vcrp8xMPKfD9ktVOXi1G +Iux0lvWF+5TfODyZhKjvJdlHKI/m9qiM3MCOPHjVeR0JqsuecVicfdeBnYqxlB0tEMA JI6g== X-Gm-Message-State: APjAAAX8FHmcrC9y9EvbTbWm3nUBrpXDgnObt6m0H8SMGf6bpoENBda5 TitZleRi6zrxP9WifM6rDckX4VLWd0E= X-Received: by 2002:a17:90a:8c1:: with SMTP id 1mr29613094pjn.12.1575841342350; Sun, 08 Dec 2019 13:42:22 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9200:4e0::afb7]) by smtp.gmail.com with ESMTPSA id j38sm14552410pgj.27.2019.12.08.13.42.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Dec 2019 13:42:21 -0800 (PST) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Sun, 8 Dec 2019 13:42:11 -0800 Message-Id: <20191208214211.3286056-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 Subject: [OE-core] [PATCH] buildstats: Replace 'is' with '==' in python condition check expression X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org python 3.8 has started to throw this as a warning but usage is wrong see [1], it seems to be working by accident and not design. Fixes SyntaxWarning: "is" with a literal. Did you mean "=="? [1]: https://bugs.python.org/issue34850 Signed-off-by: Khem Raj --- meta/classes/buildstats.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.24.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/classes/buildstats.bbclass b/meta/classes/buildstats.bbclass index 960653c704..2590c60c63 100644 --- a/meta/classes/buildstats.bbclass +++ b/meta/classes/buildstats.bbclass @@ -100,7 +100,7 @@ def write_task_data(status, logfile, e, d): f.write("rusage %s: %s\n" % (i, getattr(resources, i))) for i in rusages: f.write("Child rusage %s: %s\n" % (i, getattr(childres, i))) - if status is "passed": + if status == "passed": f.write("Status: PASSED \n") else: f.write("Status: FAILED \n")