Skip to content

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

Open
copybara-service[bot] wants to merge 1 commit intomainfrom
copybara_360083589
Open

Suggest using os.path.basename or dirname instead of split#18
copybara-service[bot] wants to merge 1 commit intomainfrom
copybara_360083589

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.

0 participants