diff options
author | msapiro <> | 2006-07-23 14:40:27 +0000 |
---|---|---|
committer | msapiro <> | 2006-07-23 14:40:27 +0000 |
commit | 7e88631508fd7f082ad19ca083f4e135226f83d6 (patch) | |
tree | 8e5eb2d48ecdbf1ac362689a381365b667dc857e /Mailman/Queue | |
parent | a60d2490bb30a8f8812e52203b1f07500107a2dc (diff) | |
download | mailman2-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.py | 2 |
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 |