Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggest using os.path.basename or dirname instead of split #18

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

copybara-service[bot]
Copy link

Suggest using os.path.basename or dirname instead of split

Compared than discarding a variable (or indexing a temporary tuple) from split, the basename and dirname functions have names that are descriptive and easier to read.

This isn't exactly a huge win for readability but it should be a slight improvement.

Compared than discarding a variable (or indexing a temporary tuple) from split, the `basename` and `dirname` functions have names that are descriptive and easier to read.

This isn't exactly a huge win for readability but it should be a slight improvement.

PiperOrigin-RevId: 360083589
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants