|
From: Aaron B. <aar...@ut...> - 2006-02-02 18:15:40
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Fuzzyman wrote: > Aaron Bentley wrote: > > Michael Foord wrote: > | I would really appreciate it if you could check this out and try and > | break it. Unicode is notoriously fiddly to get right ! > > This all looks good. I will try converting bzr to the latest version > soon, and let you know. > >> Great. I have done this, and I was rather surprised that the output of cfg_obj.write() is a list of unicode strings, rather than a list of bytestrings. We need to supply our own file objects, so we've been using the lines output from cfg_obj.write() up to this point. The StringIO support looks awkward, but probably doable to me. (Am I right that the public member for the StringIO is ConfigObj.filename?) My preference would be the ability to specify a file object to cfg_obj.write(). Aaron -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFD4kxA0F+nu1YWqI0RAgoLAJ9HlNNJ0bTOm4xPEL3NXzeGzEvAeQCdEJw5 FSyN2JEIBcKvT3lPHW2Zo/E= =gKuf -----END PGP SIGNATURE----- |