changeset 49:4b7f0ee35994

Use != in python and <> in sql.
author David A. Holland
date Sat, 02 Apr 2022 18:10:30 -0400
parents 3d5adf5a59d0
children bb0ece71355e
files shelltools/query-pr/query.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/shelltools/query-pr/query.py	Sat Apr 02 18:05:27 2022 -0400
+++ b/shelltools/query-pr/query.py	Sat Apr 02 18:10:30 2022 -0400
@@ -796,13 +796,13 @@
 
 		print_prs(ids)
 	elif sel.type == S_MESSAGE:
-		if len(ids) <> 1:
+		if len(ids) != 1:
 			sys.stderr.write("Cannot retrieve messages " +
 				"from multiple PRs.")
 			exit(1)
 		print_message(ids[0], sel.message)
 	elif sel.type == S_ATTACHMENT:
-		if len(ids) <> 1:
+		if len(ids) != 1:
 			sys.stderr.write("Cannot retrieve attachments " +
 				"from multiple PRs.")
 			exit(1)
@@ -945,7 +945,7 @@
 
 	orders = [compile_order(qb2, o) for o in s.orders]
 	order = ", ".join(orders)
-	if order <> "":
+	if order != "":
 		qb2.setorder(order)
 
 	if qb2.nonempty():