summaryrefslogtreecommitdiff
path: root/docs/_ext/djangodocs.py
diff options
context:
space:
mode:
authorRamiro Morales <cramm0@gmail.com>2013-05-26 23:47:50 -0300
committerRamiro Morales <cramm0@gmail.com>2013-05-26 23:47:50 -0300
commit0fa8d43e742ee8b480d938a47836b5a3720c2677 (patch)
tree19212a58dfb62be483ba5e8e24602c8f4def0c36 /docs/_ext/djangodocs.py
parentd228c1192ed59ab0114d9eba82ac99df611652d2 (diff)
downloaddjango-0fa8d43e742ee8b480d938a47836b5a3720c2677.tar.gz
Replaced `and...or...` constructs with PEP 308 conditional expressions.
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 3ae770da20..833232a0c3 100644
--- a/docs/_ext/djangodocs.py
+++ b/docs/_ext/djangodocs.py
@@ -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)