~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/canonical/lazr/xml.py

  • Committer: Curtis Hovey
  • Date: 2011-12-23 23:44:59 UTC
  • mto: This revision was merged to the branch mainline in revision 14599.
  • Revision ID: curtis.hovey@canonical.com-20111223234459-udhsihrcbdfi7hiw
Moved helpers to lp.services.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 
12
12
import os
13
13
from tempfile import NamedTemporaryFile
14
 
from canonical.launchpad.helpers import simple_popen2
 
14
from lp.services.helpers import simple_popen2
15
15
 
16
16
class XMLValidator:
17
17
    """A validator for XML files against a schema."""
42
42
        # Using the lxml validator, the tests in this module need ca.
43
43
        # 3 seconds on a 2GHz Core2Duo laptop.
44
44
        # If the xml data to be validated is passed to xmllint via
45
 
        # canonical.launchpad.helpers.simple_popen2, the run time
 
45
        # lp.services.helpers.simple_popen2, the run time
46
46
        # of the tests is 38..40 seconds; if the validation input
47
47
        # is not passed via stdin but saved in a temporary file,
48
48
        # the tests need 28..30 seconds.