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 #11394
  • Loading branch information
Ryan Moeller authored Dec 23, 2020
1 parent 4879c4d commit 8fbd31d
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 8fbd31d

Please sign in to comment.