mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Get rid of most of the remaining uses of <>. There's still Tools/* thogh.
This commit is contained in:
parent
c4996ba794
commit
3bd844e695
16 changed files with 23 additions and 49 deletions
|
@ -74,7 +74,7 @@ def makestatus(name, thisuser):
|
|||
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 @@ def makestatus(name, thisuser):
|
|||
#
|
||||
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],)
|
||||
|
|
|
@ -18,7 +18,7 @@ def primes(min, max):
|
|||
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
|
||||
|
|
|
@ -83,7 +83,7 @@ def main():
|
|||
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:])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue