summaryrefslogtreecommitdiff
path: root/docs/_ext/djangodocs.py
diff options
context:
space:
mode:
Diffstat (limited to 'docs/_ext/djangodocs.py')
-rw-r--r--docs/_ext/djangodocs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/_ext/djangodocs.py b/docs/_ext/djangodocs.py
index 66e87cdddf..21abe99063 100644
--- a/docs/_ext/djangodocs.py
+++ b/docs/_ext/djangodocs.py
@@ -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)