Skip to content

Commit

Permalink
debug3
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Jan 21, 2025
1 parent ffa90f1 commit ad791cc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Lib/_colorize.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ def can_colorize(*, file=None) -> bool:
return False

try:
if os.isatty(file.fileno()): return 3
else: return False
return os.isatty(file.fileno())
except io.UnsupportedOperation:
if file.isatty(): return 4
else: return False

0 comments on commit ad791cc

Please sign in to comment.