« Previous | Next » 

Revision 4267cb32


Added by Christos Stavrakakis about 7 years ago

snf_django: Fix alignment in pprint_table command

Alignment was broken from new code that decoded table fields using
user's encoding, since len() function will count length of bytes and not
characters. This commit fixes by making pprint_table work only with
unicode objects. The patched 'sys.stdout' of snf-manage command will
then encode the table correctly.


  • added
  • modified
  • copied
  • renamed
  • deleted

View differences