Replaced and...or... constructs with PEP 308 conditional expressions.

This commit is contained in:
Ramiro Morales 2013-05-26 23:47:50 -03:00
parent d228c1192e
commit 0fa8d43e74
25 changed files with 37 additions and 39 deletions

View file

@ -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)