Skip to content

Commit

Permalink
dbufstat: Fix warnings with Python 3.8
Browse files Browse the repository at this point in the history
Replace "is" with "==" and "is not" with "!=".

Reviewed-by: George Melikov <[email protected]>
Signed-off-by: Ryan Moeller <[email protected]>
Closes openzfs#11394
  • Loading branch information
Ryan Moeller authored and jsai20 committed Mar 30, 2021
1 parent ad624d1 commit 02a4943
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/dbufstat/dbufstat.in
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 02a4943

Please sign in to comment.