Bugfix: Make click.progressbar work with codecs.open files
Before adoption: this commit came in with the history the project adopted, so no landing records it.
- codecs.open returns a StreamReaderWriter when used with encoding, this object doesn't have a `__len__` attribute, so calling the `len` function on it result in an `AttributeError` instead of a `TypeError` - this will catch the AttributeError as well as the TypeError instead of only catching the later
authored by Asham · committed by Markus Unterwaditzer · parent 42905cc · Browse files · 1 file+1 added−1 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
1 file+1 added−1 removed
- other:+1 added−1 removed