From 8fbd31d761b3a311c96783f2f285ac38cfd27274 Mon Sep 17 00:00:00 2001 From: Ryan Moeller Date: Wed, 23 Dec 2020 18:10:35 -0500 Subject: [PATCH] dbufstat: Fix warnings with Python 3.8 Replace "is" with "==" and "is not" with "!=". Reviewed-by: George Melikov Signed-off-by: Ryan Moeller Closes #11394 --- cmd/dbufstat/dbufstat.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/dbufstat/dbufstat.in b/cmd/dbufstat/dbufstat.in index 1d4eb39d7..82250353f 100755 --- a/cmd/dbufstat/dbufstat.in +++ b/cmd/dbufstat/dbufstat.in @@ -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