未验证 提交 fb35c6b7 编写于 作者: T Tony Cao 提交者: GitHub

[CodeStyle][E714] Convert 'not ... is' to 'is not' (#46741)

上级 a19b082e
......@@ -100,7 +100,7 @@ class dcgmFileReader(FileReader):
axis=0,
join='outer')
dcgm_data = dcgm_data.dropna()
if not q is None:
if q is not None:
q.put(dcgm_data)
self._logger.info("I finish processing %s!" % fileName)
return dcgm_data
......
......@@ -73,7 +73,7 @@ class netFileReader(FileReader):
(line[:-1], fileName))
traceInfo["traceEvents"] = traceEventList
if not q is None:
if q is not None:
q.put(traceInfo)
else:
return traceInfo
......
......@@ -53,7 +53,7 @@ class profileFileReader(FileReader):
(rankId)] = self._parseSingleFile(fileName)
self._logger.info("I finish processing %s!" % fileName)
if not q is None:
if q is not None:
q.put(profile_dict)
return profile_dict
......@@ -142,7 +142,7 @@ class profileFileReader(FileReader):
res[str(rankId)] = pipeLineList
if not q is None:
if q is not None:
q.put(res)
return res
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册