~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to database/schema/pending/new-person-columns.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:
12
12
 
13
13
from optparse import OptionParser
14
14
 
15
 
from canonical.database.sqlbase import connect, ISOLATION_LEVEL_AUTOCOMMIT
 
15
from lp.services.database.sqlbase import (
 
16
    connect,
 
17
    ISOLATION_LEVEL_AUTOCOMMIT,
 
18
    )
16
19
from lp.services.scripts import db_options
17
 
from lp.services.scripts.logger import log, logger_options
 
20
from lp.services.scripts.logger import (
 
21
    log,
 
22
    logger_options,
 
23
    )
18
24
 
19
25
 
20
26
def update_until_done(con, table, query, vacuum_every=100):