/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/plugins/propose/launchpad.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2019-05-28 20:40:34 UTC
  • mfrom: (7295.2.1 lgtm)
  • Revision ID: breezy.the.bot@gmail.com-20190528204034-cmdcwo3qib3k5zsx
Fix some issues reported by lgtm.com.

Merged from https://code.launchpad.net/~jelmer/brz/lgtm/+merge/365991

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
    if url.startswith('lp:'):
74
74
        return True
75
75
    regex = re.compile('([a-z]*\+)*(bzr\+ssh|http|ssh|git|https)'
76
 
                       '://(bazaar|git).*.launchpad.net')
 
76
                       '://(bazaar|git).*\.launchpad\.net')
77
77
    return bool(regex.match(url))
78
78
 
79
79
 
483
483
                        prerequisite_branch=None):
484
484
        """Perform the submission."""
485
485
        if labels:
486
 
            raise LabelsUnsupported()
 
486
            raise LabelsUnsupported(self)
487
487
        if prerequisite_branch is not None:
488
488
            prereq = self.launchpad.branches.getByUrl(
489
489
                url=prerequisite_branch.user_url)
612
612
                        prerequisite_branch=None):
613
613
        """Perform the submission."""
614
614
        if labels:
615
 
            raise LabelsUnsupported()
 
615
            raise LabelsUnsupported(self)
616
616
        if prerequisite_branch is not None:
617
617
            (prereq_repo_lp, prereq_branch_lp) = (
618
618
                self.lp_host._get_lp_git_ref_from_branch(prerequisite_branch))