~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to utilities/report-database-stats.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:
6
6
 
7
7
__metaclass__ = type
8
8
 
 
9
import _pythonpath
 
10
 
9
11
from datetime import datetime
10
12
from operator import attrgetter
11
13
from textwrap import (
13
15
    fill,
14
16
    )
15
17
 
16
 
import _pythonpath
17
 
 
18
 
from canonical.database.sqlbase import (
 
18
from lp.scripts.helpers import LPOptionParser
 
19
from lp.services.database.namedrow import named_fetchall
 
20
from lp.services.database.sqlbase import (
19
21
    connect,
20
22
    sqlvalues,
21
23
    )
22
24
from lp.services.scripts import db_options
23
 
from lp.scripts.helpers import LPOptionParser
24
 
from lp.services.database.namedrow import named_fetchall
25
25
 
26
26
 
27
27
class Table: