mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-25 18:59:33 +03:00
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
4879c4d198
commit
8fbd31d761
@ -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
Block a user