astropy/astropy — pull request #2573 by keflavich (2014-05-28 15:48:35+00:00)
Title: Limit progressbar width

Limit the progressbar width to <=100%. If you accidentally (or, due to lack of prior information about your iterator) specify the wrong maximum value in progressbar, your terminal gets messy. This stops that, hopefully preserving information about how much you've gone over.