/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: Martin
  • Date: 2019-06-15 01:11:23 UTC
  • mto: This revision was merged to the branch mainline in revision 7325.
  • Revision ID: gzlist@googlemail.com-20190615011123-b3zn6kb8hgybw5sx
Fix invalid escape sequence warnings in regexps

No functional change, makes running bt.test_source on Python 3 cleaner.

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