GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Bugfix: Make click.progressbar work with codecs.open files by mina-asham · Pull Request #637 · pallets/click

Conversation

@mina-asham

@mina-asham mina-asham commented Aug 19, 2016

Copy link
Copy Markdown
  • 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
  • Fixes: Progress bar doesn't work with codecs.open when using encoding #636

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
mitsuhiko and others added 30 commits November 25, 2015 10:09
@mitsuhiko
This is 7.0-dev
a6a6964
@mitsuhiko
Merge branch '6.x-maintenance'
6fcda3e
@mitsuhiko
Merge branch '6.x-maintenance'
607f015
@jonafato
Restore option_name parameter to BadOptionUsage
f41b71c
Revert changes made to ``BadOptionUsage.__init__`` in
5f98f57. Additionally, store
``option_name`` on the exception instance to allow programmatic access
to it (this matches the behavior of several other exceptions) and
document the param in ``BadOptionUsage``'s docstring. Fixes pallets#474.
@taleinat
fix minor doc typo: "pf" -> "of"
6a81dd5
@mitsuhiko
Merge branch '6.x-maintenance'
abec2b0
@mitsuhiko
Merge pull request pallets#476 from taleinat/patch-1
d5f7713
fix minor doc typo: "pf" -> "of"
@mitsuhiko
Merge pull request pallets#475 from jonafato/restore-option_name
79e80fe
Restore option_name parameter to BadOptionUsage
@RonnyPfannschmidt
introduce int_types compat to fix python3 type error in _length_hint
11a662d
@RonnyPfannschmidt
length hint test: ensure iterator compatibility for older python vers…
725b520
…ions
@mitsuhiko
Merge pull request pallets#488 from RonnyPfannschmidt/fix-termio
8ed2573
introduce int_types compat to fix python3 type error in _length_hint
@mitsuhiko
Store unicode strings properly in exceptions
8c6c150
@nchammas
Simplify commands, add .DS_Store
5918487
Full syntax is here: https://docs.python.org/3/distutils/commandref.html
@mitsuhiko
Merge branch '6.x-maintenance'
5aeff2d
@untitaker
Merge pull request pallets#483 from nchammas/patch-1
0a7e6ef
Simplify MANIFEST.in commands
@mattrobenolt
Add the ability to hide commands and options from help
8f4c34f
@mitsuhiko
Merge pull request pallets#500 from mattrobenolt/hidden
71eba46
Add the ability to hide commands and options from help
@mitsuhiko
Update CHANGES
7d1f4ab
@adampetrovic
Fixed a typo in the advanced help docs
78393dc
@untitaker
Merge branch '6.x-maintenance'
598ad33
@untitaker
Merge pull request pallets#519 from adampetrovic/master
52206a4
Fixed a typo in the advanced help docs
@untitaker
Add click-contrib link to CONTRIBUTING
57c6f09
@DenisCarriere
Add Float Range in Types
2be5923
@untitaker
bashcomplete: Adapt to changes for chain commands
37011e7
Done in 0a2919f

Fix pallets#471
@untitaker
Merge branch '6.x-maintenance'
4d0e098
@untitaker
Merge branch '6.x-maintenance'
bc9bb70
@mitsuhiko
Merge branch '6.x-maintenance'
fa2d870
@buckket
Clarify behavior of resolve_path
6dfc2e7
'resolve_path' suggests, that it will also call os.path.expanduser(), while in fact it does not.
Avoid confusion by stating this in the docstring of :class:`Path`.
@untitaker
Merge pull request pallets#546 from buckket/buckket-resolve-path
7047fcf
Clarify behavior of resolve_path
@rsiemens
Docstring additions and typo fixes
c8e2110
untitaker and others added 21 commits April 4, 2016 18:41
@untitaker
Merge branch '6.x-maintenance'
d40fc8c
@untitaker
Merge branch '6.x-maintenance'
dac66dc
@DenisCarriere
Added Float Range in Changelog
d54c323
@DenisCarriere
Added period to changelog
3c0b985
@untitaker
Merge pull request pallets#538 from DenisCarriere/master
cdea8fc
Add Float Range in Types
@her0e1c1 @untitaker
secho takes None as an argument like echo
70bc054
@her0e1c1 @untitaker
secho print empty string if it takes None
45d6be9
@untitaker
Add changelog entry
70f29dc
@untitaker
Merge branch 'her0e1c1-fix-secho'
2899795
Fix pallets#424
@rsiemens
issue pallets#393: Usage error should show there is a --help option
9cfea14
@rsiemens
issue pallets#540: Fix spelling error in quickstart
ddd8034
@rsiemens
issue pallets#393: Show help hint only if there is a help option.
2cae5e9
@rsiemens
issue pallets#393: Add more tests to support changes.
ee780c3
@untitaker
Merge pull request pallets#557 from Nudies/master
42e2821
issue pallets#393: Usage error should show there is a --help option
@untitaker
Changelog for pallets#557
ae5386b
@jmorganc
Update python3.rst
f2cd549
Removed unnecessary word.
@untitaker
Merge pull request pallets#566 from jmorganc/patch-1
b5f5988
Update python3.rst
@untitaker
Fix broken merge
6f4d267
Fix pallets#577
@ellisonleao
fix external package broken link on CONTRIBUTING
a502d01
@untitaker
Merge pull request pallets#593 from ellisonleao/patch-1
4f44f65
fix external package broken link on CONTRIBUTING
Asham
Bugfix: Make click.progressbar work with codecs.open files
27d15c9
- 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
@untitaker
untitaker changed the base branch from master to 6.x-maintenance August 19, 2016 15:06
@untitaker

untitaker commented Aug 19, 2016

Copy link
Copy Markdown
Contributor

Oops, sorry, I thought I could actually cherry-pick your commit with this new GitHub feature. I'll merge manually.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

untitaker added a commit that referenced this pull request Aug 19, 2016
@untitaker
Changelog for #637
7e8324f
@untitaker

untitaker commented Aug 19, 2016

Copy link
Copy Markdown
Contributor

Manually applied, thanks!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@untitaker untitaker closed this Aug 19, 2016
@untitaker untitaker mentioned this pull request Aug 19, 2016
Progress bar doesn't work with codecs.open when using encoding #636
Closed
pgkelley4 pushed a commit to pgkelley4/click that referenced this pull request Aug 20, 2016
@untitaker @pgkelley4
Changelog for pallets#637
920c8f0
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Nov 13, 2020
@kdeldycke kdeldycke added the help output Help text formatting, layout, and --help rendering label Aug 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

help output Help text formatting, layout, and --help rendering

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

17 participants

@mina-asham @untitaker @kdeldycke @mitsuhiko @jonafato @taleinat @RonnyPfannschmidt @nchammas @mattrobenolt @adampetrovic @DenisCarriere @buckket @rsiemens @quobit @her0e1c1 @jmorganc @ellisonleao
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.