Re: [Qemu-devel] [PATCH for-3.1 v2] python: Use io.StringIO

2018-07-20 Thread Eduardo Habkost
On Wed, Jul 18, 2018 at 07:36:28PM -0300, Philippe Mathieu-Daudé wrote: > Both Python 2.7 and 3 support the same io.StringIO to > handle unicode strings. > > Python 2.6 requires special care, but since 7f2b55443a his > support was removed. Stop caring, drop the ImportError check. > > Use the

[Qemu-devel] [PATCH for-3.1 v2] python: Use io.StringIO

2018-07-18 Thread Philippe Mathieu-Daudé
Both Python 2.7 and 3 support the same io.StringIO to handle unicode strings. Python 2.6 requires special care, but since 7f2b55443a his support was removed. Stop caring, drop the ImportError check. Use the common form to use indistinctly Python 2.7 or 3.