From 815a523a0c039f5522f3003ef9e13c987be2a8b2 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_binhex.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Lib/test/test_binhex.py') diff --git a/Lib/test/test_binhex.py b/Lib/test/test_binhex.py index 68012f859d..4dfe14e07a 100755 --- a/Lib/test/test_binhex.py +++ b/Lib/test/test_binhex.py @@ -32,8 +32,8 @@ def test(): f = open(fname1, 'r') finish = f.readline() - if start <> finish: - print 'Error: binhex <> hexbin' + if start != finish: + print 'Error: binhex != hexbin' elif verbose: print 'binhex == hexbin' -- cgit v1.2.1