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-andre wants to merge 2 commits intoAzure:masterfrom
nuno-andre:master
Open

Replace TrimBeginningAndEndingSlashes with str.strip#140
nuno-andre wants to merge 2 commits intoAzure:masterfrom
nuno-andre:master

Conversation

@nuno-andre
Copy link

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
Copy link

msftclas commented Dec 23, 2018

CLA assistant check
All CLA requirements met.

@christopheranderson
Copy link

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