Beware of possible unicode strings (#876293)
commit4305de81911a596e53186ecdec932cfe97a648bf
authorVratislav Podzimek <vpodzime@redhat.com>
Fri, 30 Nov 2012 10:59:36 +0000 (30 11:59 +0100)
committerVratislav Podzimek <vpodzime@redhat.com>
Wed, 12 Dec 2012 09:04:35 +0000 (12 10:04 +0100)
tree00b4354b36256a2d881557eda6e0b653befdfffe
parenta4ec9e2c58d9544c3d33fbf2fb16dba77e4757b9
Beware of possible unicode strings (#876293)

__str__ method should return byte string, not unicode string. But as we
don't have a ensure this in every KS_OBJECT.__str__ method, let's add
encode("utf-8") call to the result if it is a unicode string.

Also add test for these issues.
pykickstart/base.py
tests/parser/handle_unicode.py [new file with mode: 0644]