Skip to content
Myr

Fixed an issue with custom types on Python 3.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent 2b08764 · Browse files · 2 files+2 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

2 files+2 added−1 removed

  • other:+2 added−1 removed

2 files+2 added−1 removed

modified:click/types.py+1 added-1 removed
76 unmodified lines
77 try:78 return self.func(value)79 except ValueError:80 try:81 value = unicode(value)81 value = text_type(value)82 except UnicodeError:83 value = str(value).decode('utf-8', 'replace')84 self.fail(value, param, ctx)85
366 unmodified lines
modified:CHANGES+1 added
13 unmodified lines
14- fixed windows terminals incorrectly being reported to be 8015 characters wide instead of 7916- use colorama win32 bindings if available to get the correct17 dimensions of a windows terminal.18- fixed an issue with custom function types on Python 3.1920Version 2.021-----------22
53 unmodified lines