From 132dce22469f476f399d1bbc6d1cc2f7ba0110cc Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Tue, 12 Dec 2000 23:11:42 +0000 Subject: Update the code to better reflect recommended style: Use != instead of <> since <> is documented as "obsolescent". Use "is" and "is not" when comparing with None or type objects. --- Lib/test/test_bsddb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Lib/test/test_bsddb.py') diff --git a/Lib/test/test_bsddb.py b/Lib/test/test_bsddb.py index aa65295a02..b59a4e0a11 100755 --- a/Lib/test/test_bsddb.py +++ b/Lib/test/test_bsddb.py @@ -34,8 +34,8 @@ def test(openmethod, what): try: rec = f.next() except KeyError: - if rec <> f.last(): - print 'Error, last <> last!' + if rec != f.last(): + print 'Error, last != last!' f.previous() break if verbose: -- cgit v1.2.1