On 2021/01/22 20:50, Stefan Sperling wrote:
> On Sun, Jan 17, 2021 at 01:16:59PM -0000, futat...@apache.org wrote:
>> Author: futatuki
>> Date: Sun Jan 17 13:16:59 2021
>> New Revision: 1885600
>>
>> URL: http://svn.apache.org/viewvc?rev=1885600&view=rev
>> Log:
>> Follow up to r1884427, r1885557: mailer.py: Fix mixture of bytes/str.
> 
> This change seems to have changed the output of mailer.py. The new
> output looks better (no leading slash on paths), but the test suite
> fails because it still expects the old output.

It has already been fixed, but as a note:

This change came from following hunk fixing the behaviour of
remove_leading_shashes() as it should be. This function accepts only
bytes objects or None object.

>> @@ -120,7 +120,7 @@ def main(pool, cmd, config_fname, repos_
>>  
>>  
>>  def remove_leading_slashes(path):
>> -  while path and path[0] == '/':
>> +  while path and path[0:1] == b'/':
>>      path = path[1:]
>>    return path
>>  

Cheers,
-- 
Yasuhito FUTATSUKI <futat...@yf.bsclub.org>

Reply via email to