~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/canonical/librarian/librariangc.py

  • Committer: Curtis Hovey
  • Date: 2011-12-28 17:03:06 UTC
  • mto: This revision was merged to the branch mainline in revision 14605.
  • Revision ID: curtis.hovey@canonical.com-20111228170306-n9fz94h85ckaoaf3
Separate test-authoring classes from test-running classes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 
6
6
__metaclass__ = type
7
7
 
8
 
from datetime import (
9
 
    datetime,
10
 
    timedelta,
11
 
    )
 
8
from datetime import datetime, timedelta
12
9
import errno
13
 
import os
14
10
import re
15
11
import sys
16
12
from time import time
 
13
import os
17
14
 
18
15
from zope.interface import implements
19
16
 
20
 
from lp.services.config import config
21
 
from lp.services.database.postgresql import (
22
 
    drop_tables,
23
 
    listReferences,
24
 
    quoteIdentifier,
25
 
    )
26
 
from lp.services.librarianserver.storage import (
27
 
    _relFileLocation as relative_file_path,
28
 
    _sameFile,
29
 
    )
 
17
from canonical.config import config
 
18
from canonical.database.postgresql import drop_tables, quoteIdentifier
30
19
from lp.services.looptuner import (
31
20
    DBLoopTuner,
32
21
    ITunableLoop,
33
22
    )
34
 
 
 
23
from canonical.librarian.storage import _relFileLocation as relative_file_path
 
24
from canonical.librarian.storage import _sameFile
 
25
from canonical.database.postgresql import listReferences
35
26
 
36
27
log = None  # This is set by cronscripts/librarian-gc.py
37
28
debug = False