/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): Martin
  • Date: 2019-06-15 13:23:16 UTC
  • mfrom: (7322.2.1 fix_regexp_escape_deprec)
  • Revision ID: breezy.the.bot@gmail.com-20190615132316-s0ke56mu8w8krltr
Fix 'invalid escape sequence' warnings in regexps

Merged from https://code.launchpad.net/~gz/brz/fix_regexp_escape_deprec/+merge/368855

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
        return False
75
75
    if url.startswith('lp:'):
76
76
        return True
77
 
    regex = re.compile('([a-z]*\+)*(bzr\+ssh|http|ssh|git|https)'
78
 
                       '://(bazaar|git).*\.launchpad\.net')
 
77
    regex = re.compile(r'([a-z]*\+)*(bzr\+ssh|http|ssh|git|https)'
 
78
                       r'://(bazaar|git).*\.launchpad\.net')
79
79
    return bool(regex.match(url))
80
80
 
81
81