Code optimizations wrt handling of None - bug 2212

svn: r10811
This commit is contained in:
Gerald Britton
2008-06-16 15:01:46 +00:00
parent 47095b4e98
commit 4982292774
124 changed files with 379 additions and 377 deletions

View File

@@ -97,7 +97,7 @@ class LRU:
Iterate over the LRU
"""
cur = self.first
while cur != None:
while cur is not None:
cur2 = cur.next
yield cur.value[1]
cur = cur2
@@ -108,7 +108,7 @@ class LRU:
Return items in the LRU using a generator
"""
cur = self.first
while cur != None:
while cur is not None:
cur2 = cur.next
yield cur.value
cur = cur2