Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Check file not sys.stdout
Co-authored-by: Victor Stinner <[email protected]>
  • Loading branch information
hugovk and vstinner authored Jan 14, 2025
commit 44828f0f9a883d55b97d857a853f7aa11c940b4e
2 changes: 1 addition & 1 deletion Lib/_colorize.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@ def can_colorize(*, file=None) -> bool:
try:
return os.isatty(file.fileno())
except io.UnsupportedOperation:
return sys.stdout.isatty()
return file.isatty()