Skip to content

Conversation

@copybara-service
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.

1 participant