~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/codehosting/codeimport/worker.py

  • Committer: Jeroen Vermeulen
  • Date: 2011-09-19 06:57:55 UTC
  • mto: This revision was merged to the branch mainline in revision 13994.
  • Revision ID: jeroen.vermeulen@canonical.com-20110919065755-lgot1hi4xfqrf492
Lint.  Lots of lint.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
    do_catching_redirections,
44
44
    get_transport,
45
45
    )
 
46
import bzrlib.ui
46
47
from bzrlib.upgrade import upgrade
47
 
import bzrlib.ui
48
48
from bzrlib.urlutils import (
49
49
    join as urljoin,
50
50
    local_path_from_url,
681
681
        """
682
682
        def redirected(transport, e, redirection_notice):
683
683
            self._opener_policy.checkOneURL(e.target)
684
 
            redirected_transport = transport._redirected_to(e.source, e.target)
 
684
            redirected_transport = transport._redirected_to(
 
685
                e.source, e.target)
685
686
            if redirected_transport is None:
686
687
                raise NotBranchError(e.source)
687
688
            self._logger.info('%s is%s redirected to %s',
688
689
                 transport.base, e.permanently, redirected_transport.base)
689
690
            return redirected_transport
 
691
 
690
692
        def find_format(transport):
691
693
            last_error = None
692
694
            for prober_kls in self.probers: