summaryrefslogtreecommitdiff
path: root/Lib/plat-irix6/torgb.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/plat-irix6/torgb.py')
-rw-r--r--Lib/plat-irix6/torgb.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/plat-irix6/torgb.py b/Lib/plat-irix6/torgb.py
index 59e3fbefba..7cc3b47cf0 100644
--- a/Lib/plat-irix6/torgb.py
+++ b/Lib/plat-irix6/torgb.py
@@ -60,7 +60,7 @@ def torgb(filename):
ret = _torgb(filename, temps)
finally:
for temp in temps[:]:
- if temp <> ret:
+ if temp != ret:
try:
os.unlink(temp)
except os.error:
@@ -83,12 +83,12 @@ def _torgb(filename, temps):
if type(msg) == type(()) and len(msg) == 2 and \
type(msg[0]) == type(0) and type(msg[1]) == type(''):
msg = msg[1]
- if type(msg) <> type(''):
+ if type(msg) is not type(''):
msg = `msg`
raise error, filename + ': ' + msg
if ftype == 'rgb':
return fname
- if ftype == None or not table.has_key(ftype):
+ if ftype is None or not table.has_key(ftype):
raise error, \
filename + ': unsupported image file type ' + `ftype`
temp = tempfile.mktemp()