You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's common to use stdout to generate binary files and stderr to print log and errors. At the same time colorama provides very convenient functionality to strip color codes from streams when output is redirected. The problem is that colorama wraps both stdout and stderr which strips binary symbols from stdout when binary files are generated.
It would be very useful for colorama library to wrap separately stderr / stdout on demand during initialization. I suggest to reuse 'wrap' argument to colorama.init() like this:
It's common to use
stdout
to generate binary files andstderr
to print log and errors. At the same timecolorama
provides very convenient functionality to strip color codes from streams when output is redirected. The problem is that colorama wraps bothstdout
andstderr
which strips binary symbols fromstdout
when binary files are generated.It would be very useful for colorama library to wrap separately
stderr
/stdout
on demand during initialization. I suggest to reuse 'wrap' argument tocolorama.init()
like this:The text was updated successfully, but these errors were encountered: