Get rid of most of the remaining uses of <>. There's still Tools/* thogh.
diff --git a/Demo/scripts/lpwatch.py b/Demo/scripts/lpwatch.py
index 8887dee..c3dcb34 100755
--- a/Demo/scripts/lpwatch.py
+++ b/Demo/scripts/lpwatch.py
@@ -74,7 +74,7 @@
ubytes = ubytes + bytes
users[user] = ujobs, ubytes
else:
- if fields and fields[0] <> 'Rank':
+ if fields and fields[0] != 'Rank':
line = string.strip(line)
if line == 'no entries':
line = name + ': idle'
@@ -84,7 +84,7 @@
#
if totaljobs:
line = '%d K' % ((totalbytes+1023)/1024)
- if totaljobs <> len(users):
+ if totaljobs != len(users):
line = line + ' (%d jobs)' % totaljobs
if len(users) == 1:
line = line + ' for %s' % (users.keys()[0],)
diff --git a/Demo/scripts/primes.py b/Demo/scripts/primes.py
index 5935a3c..8762fe2 100755
--- a/Demo/scripts/primes.py
+++ b/Demo/scripts/primes.py
@@ -18,7 +18,7 @@
while i <= max:
for p in primes:
if i%p == 0 or p*p > i: break
- if i%p <> 0:
+ if i%p != 0:
primes.append(i)
if i >= min: print i
i = i+2
diff --git a/Demo/scripts/update.py b/Demo/scripts/update.py
index c936026..eac1a22 100755
--- a/Demo/scripts/update.py
+++ b/Demo/scripts/update.py
@@ -83,7 +83,7 @@
print 'Funny line:', line,
continue
filename, lineno = prog.group(1, 2)
- if not curfile or filename <> curfile.filename:
+ if not curfile or filename != curfile.filename:
if curfile: curfile.finish()
curfile = FileObj(filename)
curfile.process(lineno, line[n:])