Olivier Hervieu added the comment:

Here is a fixed version for python2.7. Using StringIO instead of io module 
fixes the problem pointed by Ezio.
The print_stats method dumps the stats either on sys.stdout if `Stats` class is 
declared without a stream specification or in the given stream parameter (the 
name print_stats may be a bit misleading).

----------
nosy: +ohe
Added file: http://bugs.python.org/file30760/issue18033_py2.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18033>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to