dbufstat: Fix warnings with Python 3.8
Replace "is" with "==" and "is not" with "!=". Reviewed-by: George Melikov <mail@gmelikov.ru> Signed-off-by: Ryan Moeller <ryan@iXsystems.com> Closes #11394
This commit is contained in:
parent
e1d9228b08
commit
3075b29ca8
|
@ -131,7 +131,7 @@ elif sys.platform.startswith("linux"):
|
|||
def print_incompat_helper(incompat):
|
||||
cnt = 0
|
||||
for key in sorted(incompat):
|
||||
if cnt is 0:
|
||||
if cnt == 0:
|
||||
sys.stderr.write("\t")
|
||||
elif cnt > 8:
|
||||
sys.stderr.write(",\n\t")
|
||||
|
@ -662,7 +662,7 @@ def main():
|
|||
if not ifile:
|
||||
ifile = default_ifile()
|
||||
|
||||
if ifile is not "-":
|
||||
if ifile != "-":
|
||||
try:
|
||||
tmp = open(ifile, "r")
|
||||
sys.stdin = tmp
|
||||
|
|
Loading…
Reference in New Issue