diff options
author | Fred Drake <fdrake@acm.org> | 2000-12-12 23:11:42 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2000-12-12 23:11:42 (GMT) |
commit | 132dce22469f476f399d1bbc6d1cc2f7ba0110cc (patch) | |
tree | 4b0988e41b3b7d25d10c2a24fb18b07ff376f66d /Lib/plat-irix6/readcd.py | |
parent | 63596aeb33c2837d7802449c8906349c9ea1998e (diff) | |
download | cpython-132dce22469f476f399d1bbc6d1cc2f7ba0110cc.zip cpython-132dce22469f476f399d1bbc6d1cc2f7ba0110cc.tar.gz cpython-132dce22469f476f399d1bbc6d1cc2f7ba0110cc.tar.bz2 |
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/plat-irix6/readcd.py')
-rw-r--r-- | Lib/plat-irix6/readcd.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Lib/plat-irix6/readcd.py b/Lib/plat-irix6/readcd.py index 403353f..e000d35 100644 --- a/Lib/plat-irix6/readcd.py +++ b/Lib/plat-irix6/readcd.py @@ -93,7 +93,7 @@ class Readcd: if prog < self.status[5] or prog > self.status[6]: raise Error, 'range error' end = self.pmsf2msf(prog, min, sec, frame) - elif l <> 3: + elif l != 3: raise Error, 'syntax error' if type(start) == type(0): if start < self.status[5] or start > self.status[6]: @@ -111,7 +111,7 @@ class Readcd: if prog < self.status[5] or prog > self.status[6]: raise Error, 'range error' start = self.pmsf2msf(prog, min, sec, frame) - elif l <> 3: + elif l != 3: raise Error, 'syntax error' self.list.append((start, end)) @@ -127,10 +127,10 @@ class Readcd: if self.playing: start, end = self.list[self.listindex] if type(end) == type(0): - if cb_type <> CD.PNUM: + if cb_type != CD.PNUM: self.parser.setcallback(cb_type, func, arg) else: - if cb_type <> CD.ATIME: + if cb_type != CD.ATIME: self.parser.setcallback(cb_type, func, arg) def removecallback(self, cb_type): @@ -140,10 +140,10 @@ class Readcd: if self.playing: start, end = self.list[self.listindex] if type(end) == type(0): - if cb_type <> CD.PNUM: + if cb_type != CD.PNUM: self.parser.removecallback(cb_type) else: - if cb_type <> CD.ATIME: + if cb_type != CD.ATIME: self.parser.removecallback(cb_type) def gettrackinfo(self, *arg): |