~ubuntu-branches/ubuntu/hardy/mailman/hardy-updates

« back to all changes in this revision

Viewing changes to Mailman/Queue/Switchboard.py

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2006-07-03 16:59:25 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060703165925-175ubna955u796c0
Tags: 0:2.1.8-1ubuntu1
* Merge to Debian; remaining Ubuntu changes:
  - debian/mailman.init: Create /var/{run,lock}/mailman.
  - debian/control: exim4 -> postfix.
* debian/control: Dependency fix: apache -> apache2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
#
13
13
# You should have received a copy of the GNU General Public License
14
14
# along with this program; if not, write to the Free Software
15
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16
16
 
17
17
"""Reading and writing message objects and message metadata.
18
18
"""
164
164
            when, digest = filebase.split('+')
165
165
            # Throw out any files which don't match our bitrange.  BAW: test
166
166
            # performance and end-cases of this algorithm.
167
 
            if not lower or (lower <= long(digest, 16) < upper):
 
167
            if lower is None or (lower <= long(digest, 16) < upper):
168
168
                times[float(when)] = filebase
169
169
        # FIFO sort
170
170
        keys = times.keys()