/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/tests/http_utils.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-12-10 01:51:52 UTC
  • mfrom: (7206.3.13 python3.7)
  • Revision ID: breezy.the.bot@gmail.com-20181210015152-11zq10e7j0rl7sx3
Fix python 3.7 compatibility.

Merged from https://code.launchpad.net/~jelmer/brz/python3.7/+merge/359220

Show diffs side-by-side

added added

removed removed

Lines of Context:
232
232
        code = None
233
233
        target = None
234
234
        for (rsource, rtarget, rcode) in self.redirections:
235
 
            target, match = re.subn(rsource, rtarget, path)
 
235
            target, match = re.subn(rsource, rtarget, path, count=1)
236
236
            if match:
237
237
                code = rcode
238
238
                break  # The first match wins