Skip to content

Commit 3075b29

Browse files
Ryan Moellerbehlendorf
authored andcommitted
dbufstat: Fix warnings with Python 3.8
Replace "is" with "==" and "is not" with "!=". Reviewed-by: George Melikov <[email protected]> Signed-off-by: Ryan Moeller <[email protected]> Closes #11394
1 parent e1d9228 commit 3075b29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/dbufstat/dbufstat.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ elif sys.platform.startswith("linux"):
131131
def print_incompat_helper(incompat):
132132
cnt = 0
133133
for key in sorted(incompat):
134-
if cnt is 0:
134+
if cnt == 0:
135135
sys.stderr.write("\t")
136136
elif cnt > 8:
137137
sys.stderr.write(",\n\t")
@@ -662,7 +662,7 @@ def main():
662662
if not ifile:
663663
ifile = default_ifile()
664664

665-
if ifile is not "-":
665+
if ifile != "-":
666666
try:
667667
tmp = open(ifile, "r")
668668
sys.stdin = tmp

0 commit comments

Comments
 (0)