Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Łukasz Langa <[email protected]>
  • Loading branch information
ashb and ambv authored Nov 7, 2022
1 parent cb389aa commit 6cbe299
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@

<!-- Changes to Black's terminal output and error messages -->

- Force output messages to always be UTF-8 on Windows (so we can see the emoji), even if
terminal is redirected or captured (#3374)
- Fix emoji rendering on Windows 10+ when standard output is redirected
or captured by forcing UTF-8 encoding in this case (#3374)

### _Blackd_

Expand Down
2 changes: 1 addition & 1 deletion src/black/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1396,7 +1396,7 @@ def patched_main() -> None:
#: Fixes errors with emoji in Windows terminals when output is redirected
# (i.e. pre-commit): https://github.com/psf/black/issues/3156
# To be as safe as possible, we only enable this for "Windows 10 October
# 2018 Update (version 1809)" and up
# 2018 Update (version 1809)" and up.
if (
"pytest" not in sys.modules
and platform.system() == "Windows"
Expand Down

0 comments on commit 6cbe299

Please sign in to comment.