]> git.proxmox.com Git - mirror_zfs.git/commitdiff
dbufstat: Fix warnings with Python 3.8
authorRyan Moeller <ryan@iXsystems.com>
Wed, 23 Dec 2020 23:10:35 +0000 (18:10 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 23 Dec 2020 23:11:01 +0000 (15:11 -0800)
Replace "is" with "==" and "is not" with "!=".

Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
Closes #11394

cmd/dbufstat/dbufstat.in

index 1d4eb39d7242cbe0e7719b4e7560c8ea648c431d..82250353f5eb60449cf828139b71794cd4b0570a 100755 (executable)
@@ -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