~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to buildmailman.py

  • Committer: Martin Pool
  • Date: 2010-12-02 05:35:45 UTC
  • mto: This revision was merged to the branch mainline in revision 12118.
  • Revision ID: mbp@canonical.com-20101202053545-2k1ui6xuxggf8s33
Better check that pseudomonkeypatches are installed into the Mailman module

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /usr/bin/python
2
2
#
3
 
# Copyright 2009 Canonical Ltd.  This software is licensed under the
 
3
# Copyright 2009, 2010 Canonical Ltd.  This software is licensed under the
4
4
# GNU Affero General Public License version 3 (see the file LICENSE).
5
5
 
6
6
import os
36
36
    sys.path.append(mailman_path)
37
37
    try:
38
38
        import Mailman
 
39
        # Also check for Launchpad-specific bits stuck into the source tree by
 
40
        # monkey_patch(), in case this is half-installed.  See
 
41
        # <https://bugs.launchpad.net/launchpad-registry/+bug/683486>.
 
42
        from Mailman.Queue import XMLRPCRunner
 
43
        from Mailman.Handlers import LPModerate
39
44
    except ImportError:
40
45
        pass
41
46
    else: