rasbt / pyprind

PyPrind - Python Progress Indicator Utility
BSD 3-Clause "New" or "Revised" License
547 stars 65 forks source link

Take any stream given #1

Closed maikelwever closed 10 years ago

maikelwever commented 10 years ago

While using this with Django, I needed to pass a custom stream, so implemented that. Also made a quick note on a Django 'feature' which screws up output in the readme, if you don't like this just remove it.

rasbt commented 10 years ago

Thanks for the very useful fix. Haven't thought about that.

rasbt commented 10 years ago

Added a trivial check if the output stream has a .write() method. Hope this works for your streams!?

maikelwever commented 10 years ago

Yes it does (how would it otherwise work? :)

rasbt commented 10 years ago

sure, what a dumb question -.-