~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to utilities/audit-security-settings.py

  • Committer: j.c.sackett
  • Date: 2011-04-25 20:17:33 UTC
  • mto: This revision was merged to the branch mainline in revision 12963.
  • Revision ID: jonathan.sackett@canonical.com-20110425201733-wimiblogx65kwnj7
Lint fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
__metatype__ = type
13
13
 
14
14
import os
15
 
import sys
16
15
 
17
16
import _pythonpath
18
17
from lp.scripts.utilities.settingsauditor import SettingsAuditor
23
22
SECURITY_PATH = os.path.join(
24
23
    BRANCH_ROOT, 'database', 'schema', 'security.cfg')
25
24
 
 
25
 
26
26
def main():
27
 
    # This is a cheap hack to allow testing in the testrunner.
28
27
    data = file(SECURITY_PATH).read()
29
28
    auditor = SettingsAuditor(data)
30
29
    settings = auditor.audit()