~barry/mailman/events-and-web

« back to all changes in this revision

Viewing changes to src/mailman/handlers/to_archive.py

  • Committer: Barry Warsaw
  • Date: 2012-08-21 00:46:18 UTC
  • Revision ID: barry@list.org-20120821004618-m059lpihjozxyx2g
Style fixes: compare enums with identity, not equality.

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
        """See `IHandler`."""
46
46
        # Short circuits.
47
47
        if (msgdata.get('isdigest') or
48
 
            mlist.archive_policy == ArchivePolicy.never):
 
48
            mlist.archive_policy is ArchivePolicy.never):
49
49
            return
50
50
        # Common practice seems to favor "X-No-Archive: yes".  No other value
51
51
        # for this header seems to make sense, so we'll just test for it's