test suite reviews and discussions
 help / color / mirror / Atom feed
From: LihongX Ma <lihongx.ma@intel.com>
To: dts@dpdk.org
Cc: "LihongX, Ma" <lihongx.ma@intel.com>
Subject: [dts] [PATCH V1] framework/main: fix warning of syntax
Date: Thu, 30 Jul 2020 08:36:58 +0800	[thread overview]
Message-ID: <1596069418-28850-1-git-send-email-lihongx.ma@intel.com> (raw)

From: "LihongX, Ma" <lihongx.ma@intel.com>

when use python3.8, it will warning of cmd 'ret is not 0', fix
this warning.

Signed-off-by: LihongX Ma <lihongx.ma@intel.com>
---
 framework/main.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/framework/main.py b/framework/main.py
index b5e5952..f6e3ae9 100755
--- a/framework/main.py
+++ b/framework/main.py
@@ -59,13 +59,13 @@ def git_build_package(gitLabel, pkgName, depot="dep"):
     else:
         print("git clone %s %s/%s" % (gitURL, depot, gitPrefix))
         ret = os.system("git clone %s %s/%s" % (gitURL, depot, gitPrefix))
-    if ret is not 0:
+    if ret != 0:
         raise EnvironmentError
 
     print("git archive --format=tar.gz --prefix=%s %s -o %s" % (gitPrefix, gitLabel, pkgName))
     ret = os.system("cd %s/%s && git archive --format=tar.gz --prefix=%s/ %s -o ../%s"
                     % (depot, gitPrefix, gitPrefix, gitLabel, pkgName))
-    if ret is not 0:
+    if ret != 0:
         raise EnvironmentError
 
 
-- 
2.7.4


             reply	other threads:[~2020-07-30  8:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-30  0:36 LihongX Ma [this message]
2020-08-12  6:55 ` Tu, Lijuan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1596069418-28850-1-git-send-email-lihongx.ma@intel.com \
    --to=lihongx.ma@intel.com \
    --cc=dts@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).