Is your feature request related to a problem?
It’s a follow-up to #1542 –& I hope it doesn’t get nitpicky ;) – these issues just pop up in my unit tests ... I’ve also realized that I’m essentially re-opening #153 w/ this:
>>> URL('http://github.com') == URL('http://github.com/')
True
>>> str(URL('http://github.com')) == str(URL('http://github.com/'))
False
Describe the solution you'd like
Remove trailing slashes in .__str__() conversion – or completely, as proposed in #153 (comment)
>>> str(URL('http://github.com/'))
'http://github.com'
Describe alternatives you've considered
Using direct URL comparison – which leads me back to #1542 ;)
Additional context
No response
Code of Conduct
Is your feature request related to a problem?
It’s a follow-up to #1542 –& I hope it doesn’t get nitpicky ;) – these issues just pop up in my unit tests ... I’ve also realized that I’m essentially re-opening #153 w/ this:
Describe the solution you'd like
Remove trailing slashes in
.__str__()conversion – or completely, as proposed in #153 (comment)Describe alternatives you've considered
Using direct
URLcomparison – which leads me back to #1542 ;)Additional context
No response
Code of Conduct