~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to scripts/script-monitor.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:
8
8
__metaclass__ = type
9
9
__all__ = ['check_script']
10
10
 
 
11
import _pythonpath
 
12
 
11
13
from datetime import (
12
14
    datetime,
13
15
    timedelta,
18
20
import sys
19
21
from time import strftime
20
22
 
21
 
import _pythonpath
22
 
 
23
 
from canonical.database.sqlbase import connect
 
23
from lp.scripts.scriptmonitor import check_script
 
24
from lp.services.database.sqlbase import connect
24
25
from lp.services.scripts import (
25
26
    db_options,
26
27
    logger,
27
28
    logger_options,
28
29
    )
29
 
from lp.scripts.scriptmonitor import check_script
30
30
 
31
31
 
32
32
def main():