VMM/cli/subcommands: Code cleanup in list_pwschemes(). v0.7.x
authorPascal Volk <user@localhost.localdomain.org>
Tue, 06 Nov 2012 21:45:50 +0000
branchv0.7.x
changeset 640 ebacd11563b0
parent 639 d50fe67778c6
child 641 724ac0a4068d
VMM/cli/subcommands: Code cleanup in list_pwschemes().
VirtualMailManager/cli/subcommands.py
--- a/VirtualMailManager/cli/subcommands.py	Tue Nov 06 19:46:06 2012 +0000
+++ b/VirtualMailManager/cli/subcommands.py	Tue Nov 06 21:45:50 2012 +0000
@@ -502,17 +502,12 @@
 
 def list_pwschemes(ctx_unused):
     """Prints all usable password schemes and password encoding suffixes."""
-    # TODO: Remove trailing colons from keys.
-    # For now it is to late, the translators has stared their work
-    keys = (_(u'Usable password schemes:'), _(u'Usable encoding suffixes:'))
+    keys = (_(u'Usable password schemes'), _(u'Usable encoding suffixes'))
     old_ii, old_si = txt_wrpr.initial_indent, txt_wrpr.subsequent_indent
     txt_wrpr.initial_indent = txt_wrpr.subsequent_indent = '\t'
     txt_wrpr.width = txt_wrpr.width - 8
 
     for key, value in zip(keys, list_schemes()):
-        if key.endswith(':'):  # who knows … (see TODO above)
-            #key = key.rpartition(':')[0]
-            key = key[:-1]  # This one is for Py24
         w_std(key, len(key) * '-')
         w_std('\n'.join(txt_wrpr.wrap(' '.join(value))), '')