Skip to content

Conversation

@ulgens
Copy link
Member

@ulgens ulgens commented Nov 2, 2025

Coming from:

It provides a cleaner experience and it's easier to read, comparing to .joinpath()

@ulgens ulgens force-pushed the make-use-of-pathlib branch from b754dbc to e124084 Compare November 2, 2025 22:18
@ulgens ulgens requested a review from a team November 2, 2025 22:21
@ulgens ulgens self-assigned this Nov 2, 2025
@ulgens ulgens force-pushed the make-use-of-pathlib branch from e124084 to 4659721 Compare November 5, 2025 10:14
docs/models.py Outdated
"djangoproject", "static", "robots.docs.txt"
)
robots_path = settings.BASE_DIR / "djangoproject" / "static" / "robots.docs.txt"
with open(str(robots_path)) as fh:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you want to use robots_path.open here like you did in test_models.py?

Copy link
Member Author

@ulgens ulgens Nov 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep. Resolved with the latest force push (diff)

@ulgens ulgens force-pushed the make-use-of-pathlib branch 2 times, most recently from 776ee4b to c163034 Compare November 21, 2025 21:31
@ulgens ulgens requested a review from adamzap November 21, 2025 21:33
Copy link
Member

@bmispelon bmispelon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good, nice work! 🎸

I haven't tested it locally, but I'm willing to trust the CI.

@ulgens ulgens force-pushed the make-use-of-pathlib branch from c163034 to 6ff4d4d Compare November 21, 2025 21:51
@ulgens ulgens requested a review from a team November 21, 2025 21:52
It provides a cleaner and easier to read experience, comparing to .joinpath()
@ulgens ulgens force-pushed the make-use-of-pathlib branch from 73ba309 to 33ac63b Compare November 21, 2025 21:53
Copy link
Member

@adamzap adamzap left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 This style isn't my personal preference, but the code looks good!

I did a quick scan, and it doesn't seem like anything else changed in the force push.

@SaptakS SaptakS merged commit af8be64 into django:main Nov 24, 2025
5 checks passed
@ulgens ulgens deleted the make-use-of-pathlib branch November 24, 2025 15:20
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.

4 participants