Re: [Django] #36763: Replace if-None checks with ternary operator in TemplateDoesNotExist.init

0 views
Skip to first unread message

Django

unread,
Dec 2, 2025, 1:14:03 AM (yesterday) Dec 2
to django-...@googlegroups.com
#36763: Replace if-None checks with ternary operator in TemplateDoesNotExist.init
-------------------------------------+-------------------------------------
Reporter: Pravin | Owner: Pravin
Type: | Status: assigned
Cleanup/optimization |
Component: Template system | Version: 5.2
Severity: Normal | Resolution:
Keywords: | Triage Stage:
TemplateDoesNotExist | Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Pravin):

I'm happy with either one
--
Ticket URL: <https://code.djangoproject.com/ticket/36763#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Dec 2, 2025, 2:31:41 AM (24 hours ago) Dec 2
to django-...@googlegroups.com
#36763: Replace if-None checks with ternary operator in TemplateDoesNotExist.init
-------------------------------------+-------------------------------------
Reporter: Pravin | Owner: Pravin
Type: | Status: closed
Cleanup/optimization |
Component: Template system | Version: 5.2
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage:
TemplateDoesNotExist | Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* resolution: => invalid
* status: assigned => closed

Comment:

There is nothing wrong with this code, and as I said (multiple times) we
try to avoid unnecessary (and this is completely unnecessary) and trivial
code reformatting unless it's a big problem as it creates extra noise in
the history.
--
Ticket URL: <https://code.djangoproject.com/ticket/36763#comment:3>
Reply all
Reply to author
Forward
0 new messages