mirror of
https://github.com/django/django.git
synced 2025-08-24 12:34:09 +00:00
Replaced and...or...
constructs with PEP 308 conditional expressions.
This commit is contained in:
parent
d228c1192e
commit
0fa8d43e74
25 changed files with 37 additions and 39 deletions
|
@ -137,7 +137,7 @@ class DjangoHTMLTranslator(SmartyPantsHTMLTranslator):
|
|||
)
|
||||
title = "%s%s" % (
|
||||
self.version_text[node['type']] % node['version'],
|
||||
len(node) and ":" or "."
|
||||
":" if len(node) else "."
|
||||
)
|
||||
self.body.append('<span class="title">%s</span> ' % title)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue