VirtualMailManager/cli/subcommands.py
branchv0.6.x
changeset 481 90d69ae4f40d
parent 474 4353981e3a7f
child 487 fb0af82ab4af
equal deleted inserted replaced
480:099de308fd98 481:90d69ae4f40d
   434     txt_wrpr.initial_indent = txt_wrpr.subsequent_indent = '\t'
   434     txt_wrpr.initial_indent = txt_wrpr.subsequent_indent = '\t'
   435     txt_wrpr.width = txt_wrpr.width - 8
   435     txt_wrpr.width = txt_wrpr.width - 8
   436 
   436 
   437     for key, value in zip(keys, list_schemes()):
   437     for key, value in zip(keys, list_schemes()):
   438         if key.endswith(':'):  # who knows … (see TODO above)
   438         if key.endswith(':'):  # who knows … (see TODO above)
   439             key = key.rpartition(':')[0]
   439             #key = key.rpartition(':')[0]
       
   440             key = key[:-1]  # This one is for Py24
   440         w_std(key, len(key) * '-')
   441         w_std(key, len(key) * '-')
   441         w_std('\n'.join(txt_wrpr.wrap(' '.join(value))), '')
   442         w_std('\n'.join(txt_wrpr.wrap(' '.join(value))), '')
   442 
   443 
   443     txt_wrpr.initial_indent, txt_wrpr.subsequent_indent = old_ii, old_si
   444     txt_wrpr.initial_indent, txt_wrpr.subsequent_indent = old_ii, old_si
   444     txt_wrpr.width = txt_wrpr.width + 8
   445     txt_wrpr.width = txt_wrpr.width + 8