VirtualMailManager/cli/subcommands.py
branchv0.7.x
changeset 638 0de0b9e75c9f
parent 618 d8736bb80bdc
child 640 ebacd11563b0
--- a/VirtualMailManager/cli/subcommands.py	Sun Nov 04 18:33:11 2012 +0000
+++ b/VirtualMailManager/cli/subcommands.py	Mon Nov 05 21:57:37 2012 +0000
@@ -959,11 +959,7 @@
         q_usage['percent'] = locale.format('%6.2f', 100. / limit * used, True)
     else:
         q_usage['percent'] = locale.format('%6.2f', 0, True)
-    #  Py25: fmt = format_domain_default if domaindefault else lambda s: s
-    if domaindefault:
-        fmt = format_domain_default
-    else:
-        fmt = lambda s: s
+    fmt = format_domain_default if domaindefault else lambda s: s
     # TP: e.g.: [  0.00%] 21.09 KiB/1.00 GiB
     return fmt(_(u'[%(percent)s%%] %(used)s/%(limit)s') % q_usage)
 
@@ -1054,10 +1050,7 @@
 
 def _print_domain_list(dids, domains, matching):
     """Print a list of (matching) domains/alias domains."""
-    if matching:
-        title = _(u'Matching domains')
-    else:
-        title = _(u'Existing domains')
+    title = _(u'Matching domains') if matching else _(u'Existing domains')
     w_std(title, '-' * len(title))
     if domains:
         for did in dids: