summaryrefslogtreecommitdiff
path: root/Lib/sunaudio.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-12-12 23:20:45 +0000
committerFred Drake <fdrake@acm.org>2000-12-12 23:20:45 +0000
commit78fa083216b120f65dbdbeef3377a047f1767fce (patch)
treeb052a231089044de42ba463eff511c4c91f8e220 /Lib/sunaudio.py
parentc453b1a3b80e329f815de2f728bf712d5c7fd295 (diff)
downloadcpython-78fa083216b120f65dbdbeef3377a047f1767fce.tar.gz
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.
Diffstat (limited to 'Lib/sunaudio.py')
-rw-r--r--Lib/sunaudio.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/sunaudio.py b/Lib/sunaudio.py
index cbd17d26d4..87dc6ee4dd 100644
--- a/Lib/sunaudio.py
+++ b/Lib/sunaudio.py
@@ -13,7 +13,7 @@ def get_long_be(s):
def gethdr(fp):
"""Read a sound header from an open file."""
- if fp.read(4) <> MAGIC:
+ if fp.read(4) != MAGIC:
raise error, 'gethdr: bad magic word'
hdr_size = get_long_be(fp.read(4))
data_size = get_long_be(fp.read(4))