~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to utilities/migrater/migrater.py

  • Committer: Curtis Hovey
  • Date: 2011-12-22 17:10:18 UTC
  • mto: This revision was merged to the branch mainline in revision 14585.
  • Revision ID: curtis.hovey@canonical.com-20111222171018-wjh8a401jqb89iro
Removed false match for canonical.launchpad.interfaces.

Show diffs side-by-side

added added

removed removed

Lines of Context:
420
420
def fix_file_true_import(file_path, all_interfaces):
421
421
    """Fix the interface imports in a file."""
422
422
    from textwrap import fill
423
 
    bad_pattern = 'from canonical.launchpad.interfaces import'
 
423
    bad_pattern = 'from package.path.that.is.globbed import'
424
424
    delimiters_pattern = re.compile(r'[,()]+')
425
425
    import_lines = []
426
426
    content = []