mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Replaced and...or... constructs with PEP 308 conditional expressions.
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user