1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #28860 -- Removed unnecessary len() calls.

This commit is contained in:
Дилян Палаузов
2017-11-29 11:54:34 -05:00
committed by Tim Graham
parent 3d94ee8500
commit d2afa5eb23
33 changed files with 56 additions and 55 deletions

View File

@@ -277,7 +277,7 @@ class DjangoHTMLTranslator(HTMLTranslator):
if version_text:
title = "%s%s" % (
version_text % node['version'],
":" if len(node) else "."
":" if node else "."
)
self.body.append('<span class="title">%s</span> ' % title)