~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to scripts/script-monitor-nagios.py

  • Committer: William Grant
  • Date: 2011-12-30 06:47:17 UTC
  • mto: This revision was merged to the branch mainline in revision 14610.
  • Revision ID: william.grant@canonical.com-20111230064717-n5re5t6we5w8o17z
Replace canonical.database usage everywhere, and format-imports.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
__metaclass__ = type
22
22
__all__ = ['check_script']
23
23
 
 
24
import _pythonpath
 
25
 
24
26
from datetime import (
25
27
    datetime,
26
28
    timedelta,
29
31
import sys
30
32
from time import strftime
31
33
 
32
 
import _pythonpath
33
 
 
34
 
from canonical.database.sqlbase import connect
 
34
from lp.scripts.scriptmonitor import check_script
 
35
from lp.services.database.sqlbase import connect
35
36
from lp.services.scripts import (
36
37
    db_options,
37
38
    logger,
38
39
    logger_options,
39
40
    )
40
 
from lp.scripts.scriptmonitor import check_script
41
41
 
42
42
 
43
43
def main():