VirtualMailManager/cli/subcommands.py
branchv0.6.x
changeset 561 b0165b7af7a3
parent 559 cc0f67f99780
child 565 a75923ce2842
--- a/VirtualMailManager/cli/subcommands.py	Wed Jun 27 12:46:27 2012 +0000
+++ b/VirtualMailManager/cli/subcommands.py	Wed Jun 27 13:11:28 2012 +0000
@@ -924,7 +924,11 @@
         q_usage['percent'] = locale.format('%6.2f', 100. / limit * used, True)
     else:
         q_usage['percent'] = locale.format('%6.2f', 0, True)
-    fmt = format_domain_default if domaindefault else lambda s: s
+    #  Py25: fmt = format_domain_default if domaindefault else lambda s: s
+    if domaindefault:
+        fmt = format_domain_default
+    else:
+        fmt = lambda s: s
     return fmt(_(u'[%(percent)s%%] %(used)s/%(limit)s') % q_usage)