Skip to content
Myr

Merge branch '6.x-maintenance'

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 · parents 2ab7a2b, 9bd66b3 · Browse files · 2 files+9 added−3 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+9 added−3 removed

  • other:+9 added−3 removed

2 files+9 added−3 removed

modified:click/exceptions.py+6 added-3 removed
17 unmodified lines
1819 def format_message(self):20 return self.message2122 def __unicode__(self):22 def __str__(self):23 return self.message2425 def __str__(self):26 return self.message.encode('utf-8')25 if PY2:26 __unicode__ = __str__2728 def __str__(self):29 return self.message.encode('utf-8')3031 def show(self, file=None):32 if file is None:33 file = get_text_stderr()34 echo('Error: %s' % self.format_message(), file=file)
186 unmodified lines
modified:CHANGES+3 added
41 unmodified lines
42- Fix bug in test runner when calling ``sys.exit`` with ``None``. See #739.43- Fix crash on Windows console, see #744.44- Fix bashcompletion on chained commands. See #754.45- Fix option naming routine to match documentation. See #79346- Fixed the behavior of click error messages with regards to unicode on 2.x47 and 3.x respectively. Message is now always unicode and the str and unicode48 special methods work as you expect on that platform.4950Version 6.751-----------52
342 unmodified lines