aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Queue
diff options
context:
space:
mode:
authormsapiro <>2006-07-23 14:40:27 +0000
committermsapiro <>2006-07-23 14:40:27 +0000
commit7e88631508fd7f082ad19ca083f4e135226f83d6 (patch)
tree8e5eb2d48ecdbf1ac362689a381365b667dc857e /Mailman/Queue
parenta60d2490bb30a8f8812e52203b1f07500107a2dc (diff)
downloadmailman2-7e88631508fd7f082ad19ca083f4e135226f83d6.tar.gz
mailman2-7e88631508fd7f082ad19ca083f4e135226f83d6.tar.xz
mailman2-7e88631508fd7f082ad19ca083f4e135226f83d6.zip
- Switchboard.py Changed "while key in times.keys():" to
"while times.has_key(key):" for execution efficiency while maintaining Python 2.1 compatibility.
Diffstat (limited to 'Mailman/Queue')
-rw-r--r--Mailman/Queue/Switchboard.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mailman/Queue/Switchboard.py b/Mailman/Queue/Switchboard.py
index e38c0cdb..9a45280d 100644
--- a/Mailman/Queue/Switchboard.py
+++ b/Mailman/Queue/Switchboard.py
@@ -187,7 +187,7 @@ class Switchboard:
# comparisons need to be <= to get complete range.
if lower is None or (lower <= long(digest, 16) <= upper):
key = float(when)
- while key in times.keys():
+ while times.has_key(key):
key += DELTA
times[key] = filebase
# FIFO sort