test suite reviews and discussions
 help / color / Atom feed
* [dts] [PATCH V1] framework/main: fix warning of syntax
@ 2020-07-30  0:36 LihongX Ma
  2020-08-12  6:55 ` Tu, Lijuan
  0 siblings, 1 reply; 2+ messages in thread
From: LihongX Ma @ 2020-07-30  0:36 UTC (permalink / raw)
  To: dts; +Cc: LihongX, Ma

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dts] [PATCH V1] framework/main: fix warning of syntax
  2020-07-30  0:36 [dts] [PATCH V1] framework/main: fix warning of syntax LihongX Ma
@ 2020-08-12  6:55 ` Tu, Lijuan
  0 siblings, 0 replies; 2+ messages in thread
From: Tu, Lijuan @ 2020-08-12  6:55 UTC (permalink / raw)
  To: Ma, LihongX, dts; +Cc: Ma, LihongX

> Subject: [dts] [PATCH V1] framework/main: fix warning of syntax
> 
> 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 ++--

Applied

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-30  0:36 [dts] [PATCH V1] framework/main: fix warning of syntax LihongX Ma
2020-08-12  6:55 ` Tu, Lijuan

test suite reviews and discussions

Archives are clonable:
	git clone --mirror http://inbox.dpdk.org/dts/0 dts/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dts dts/ http://inbox.dpdk.org/dts \
		dts@dpdk.org
	public-inbox-index dts


Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dts


AGPL code for this site: git clone https://public-inbox.org/ public-inbox