~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to daemons/cache-database-replication-lag.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:
15
15
 
16
16
import psycopg2
17
17
 
18
 
from canonical.database.sqlbase import connect, ISOLATION_LEVEL_AUTOCOMMIT
19
 
from lp.services.scripts import db_options, logger
20
18
from lp.scripts.helpers import LPOptionParser
 
19
from lp.services.database.sqlbase import (
 
20
    connect,
 
21
    ISOLATION_LEVEL_AUTOCOMMIT,
 
22
    )
 
23
from lp.services.scripts import (
 
24
    db_options,
 
25
    logger,
 
26
    )
21
27
 
22
28
 
23
29
def main(args=None):