Fix Subversion path normalization on Python 3.7+.

Review Request #10995 — Created April 9, 2020 and submitted

Information

RBTools
release-1.0.x
dbe9e88...

Reviewers

The code to split a path and normalize repeated slashes for Subversion
URLs was using a regex that wasn't very safe. It was splitting on /*,
which means 0 or more slashes. Python 3 warned about this, but kept
behavior the same. Python 3.7 removed the backwards-compatibility, and
the result was that every single character was split into its own item
in an array.

This fixes the regex to be /+, which is the correct form of what we
wanted, fixing compatibility with all Python versions.

Unit tests pass on all supported versions of Python.

david
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-1.0.x (05d3dbe)
Loading...