Auto-detect str/bytes when dumping cnf vars
authorChristian Herdtweck <christian.herdtweck@intra2net.com>
Mon, 11 Feb 2019 09:50:13 +0000 (10:50 +0100)
committerChristian Herdtweck <christian.herdtweck@intra2net.com>
Mon, 11 Feb 2019 12:17:33 +0000 (13:17 +0100)
commitc24fd52c1a7307d08f7ab4b9c3ed438e0689968e
treeb41c53441bf474a2de37da14a89abbd18867af4e
parente6eb9f5d4450dfeef7f48cfd5ab64f5c9bb9699a
Auto-detect str/bytes when dumping cnf vars

This is the second attempt to solve the problem when to "print" byte strings
and when to use regular unicode strings.

One problem is that sys.stdout can be a text stream or a byte stream
depending on shell environment.
src/cnfvar.py