~robin-jeffries/mailman/dlist-robin

« back to all changes in this revision

Viewing changes to src/mailman/handlers/rfc_2369.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:
83
83
                     else 'NO')
84
84
        headers['List-Post'] = list_post
85
85
        # Add RFC 2369 and 5064 archiving headers, if archiving is enabled.
86
 
        if mlist.archive_policy != ArchivePolicy.never:
 
86
        if mlist.archive_policy is not ArchivePolicy.never:
87
87
            for archiver in config.archivers:
88
88
                headers['List-Archive'] = '<{0}>'.format(
89
89
                    archiver.list_url(mlist))