diff options
| author | Gabriel <g2p.code@gmail.com> | 2012-11-23 22:38:55 +0100 |
|---|---|---|
| committer | Gabriel <g2p.code@gmail.com> | 2012-11-23 22:38:55 +0100 |
| commit | effc8fb7db04e9bbab8104cea2ed90c52ce40caf (patch) | |
| tree | 8ce2331972b857816eedfd7c9b74fb2f8b74196f /setuptools/dist.py | |
| parent | a4c662f1becc2919d894afd8a593923f5fab2575 (diff) | |
| download | python-setuptools-bitbucket-effc8fb7db04e9bbab8104cea2ed90c52ce40caf.tar.gz | |
Don't wrap sys.stdout if it's in the correct encoding already.
Diffstat (limited to 'setuptools/dist.py')
| -rw-r--r-- | setuptools/dist.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/setuptools/dist.py b/setuptools/dist.py index afac180e..3e9e0254 100644 --- a/setuptools/dist.py +++ b/setuptools/dist.py @@ -657,6 +657,9 @@ class Distribution(_Distribution): if not isinstance(sys.stdout, io.TextIOWrapper): return _Distribution.handle_display_options(self, option_order) + if sys.stdout.encoding.lower() in ('utf-8', 'utf8'): + return _Distribution.handle_display_options(self, option_order) + # Print metadata in UTF-8 no matter the platform encoding = sys.stdout.encoding errors = sys.stdout.errors |
