Skip to content
This repository was archived by the owner on Jan 19, 2024. It is now read-only.

Replace TrimBeginningAndEndingSlashes with str.strip - #140

Open
Nuno Andr茅 (nuno-andre) wants to merge 2 commits into
Azure:masterfrom
nuno-andre:master
Open

Nuno Andr茅 (nuno-andre) wants to merge 2 commits into
Azure:masterfrom
nuno-andre:master

Conversation

@nuno-andre

Copy link
Copy Markdown

The str built-in type has a method just for the same kind of munging as TrimBeginningAndEndingSlashes: str.strip('/'). It also has methods for removing leading (lstrip) or ending (rstrip) characters.

Furthermore, it's a more performant and idiomatic approach than the current one.

@msftclas

Microsoft Contribution License Agreements (msftclas) commented Dec 23, 2018

Copy link
Copy Markdown

CLA assistant check
All CLA requirements met.

@christopheranderson

Copy link
Copy Markdown

This branch has not been deployed

No deployments
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants